+ 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
4 ответов
+ 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
+ 3
I can guess that you have an error in your script. This usually shot down it. Try to check you file for mistakes)
+ 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!
0
input() at the end