0
Basic python 3.x question..Help
Is there a way for me to continue input on a new line without python executing a command before I can finish....? As in, I want to write an if command after a print command but it wont let me because it executes the print command as soon as im done typing it..Or do I have to write all commands on a single line?
3 odpowiedzi
+ 6
You are most likely coding in an interactive mode - each line is immediately executed after pressing ENTER.
What you need is a so-called IDE (Integrated Development Environment), which acts as an "editor" to your codes, much like what the experience is here on Sololearn.
I recommend you the PyCharm IDE: (community edition)
https://www.jetbrains.com/pycharm/download/
It is a bit heavy, but has many nice features for beginners.
Alternatively, you can download the Notepad++ which is a good basic editor for all sorts of codes. It preserves the right syntax for the given language, but you have to configure the executable for each language separately:
https://notepad-plus-plus.org/download/v7.5.6.html
0
i.e. When I press enter....