+ 1

How do I create a program if python only runs single lines

22nd Oct 2016, 4:44 PM
Edidiong Udoh
Edidiong Udoh - avatar
3 odpowiedzi
+ 3
You probably think that because you are using the interactive mode. You can create a text file (if you are using IDLE, look in File > New File (Ctrl+N)), type your python code on as many lines as you want, and save it with the .py extension. And to run your program, you can select Run > Run Module (F5) in IDLE.
22nd Oct 2016, 4:53 PM
Zen
Zen - avatar
+ 2
I recommend using an IDE, try PyCharm Community Edition it's free! :)
22nd Oct 2016, 5:52 PM
Hamza Boughraira
Hamza Boughraira - avatar
+ 1
Use an IDE, or Integrated Development Environment, like PyCharm or Geany. I prefer Geany for its simplicity.
23rd Oct 2016, 12:04 AM
Alex Schrichte
Alex Schrichte - avatar