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?

14th Apr 2018, 6:42 AM
Silver Beans
Silver Beans - avatar
3 ответов
+ 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
14th Apr 2018, 7:44 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
i.e. When I press enter....
14th Apr 2018, 6:43 AM
Silver Beans
Silver Beans - avatar