Home >Backend Development >Python Tutorial >How to correct errors in python code
How to modify Python input errors in interactive mode:
Open the IDE that comes with PYTHON, which is SHELL. If we enter incorrect information, it will appear in red.
At this time, move the cursor to the wrong line of code and click ENTER.
Then a new line of code will be automatically generated.
We can modify it based on this, and then click ENTER to output the correct result.
For more Python related technical articles, please visit the Python Tutorial column to learn!
The above is the detailed content of How to correct errors in python code. For more information, please follow other related articles on the PHP Chinese website!