+ 18

How to run python file in computer?

When I open my saved python file in computer. Why is it disappeared at once? https://code.sololearn.com/cQFcVUCxiuXY/?ref=app

26th Aug 2017, 4:48 PM
Chinthana Kavinda
Chinthana Kavinda - avatar
4 odpowiedzi
+ 1
when using Windows, the console disappears right away. If you want to see what is written in the console, use "import os" at the top of the program and use 'os.system("PAUSE")' I think that should do the trick
27th Aug 2017, 5:13 AM
Amaras A
Amaras A - avatar
+ 3
I can guess that you have an error in your script. This usually shot down it. Try to check you file for mistakes)
26th Aug 2017, 4:55 PM
Leshark
Leshark - avatar
+ 2
Create a folder on your computer to use for your Python programs. .. .Open the Applications folder, go into the Utilities folder, and open the Terminal program. Type cd pythonpractice to change directory to your pythonpractice folder, and hit Enter.Type python ./hello.py to run your program!
13th Oct 2017, 3:11 PM
Ravish kumar singh
Ravish kumar singh - avatar
0
input() at the end
13th Oct 2017, 8:42 PM
Nils Böttcher
Nils Böttcher - avatar