How to Clear Text in Python
The Python programming language requires a programmer to write his document in a text editor before running it through the Python Interpreter. Sometimes you will want to remove part of your Python code, such as when a variable is no longer required to remove a malfunctioning segment of the application's logic. Clearing text in Python is accomplished by deleting the block of text that is no longer wanted.
Instructions
-
-
1
Open the Start menu and type "notepad," then click "Notepad" from the list of results.
-
2
Click "File," then "Open" and select your Python file.
-
-
3
Highlight the block of text you'd like to remove by holding down the left mouse button and dragging the cursor over the text.
-
4
Click "Backspace" to delete the text.
-
5
Click "File," then "Save" to save your document.
-
1