Right after I start my PYTHON code my comand prompt exits.I can't even test it out or see the result becaues it exits too fast.Any help?
Asked
Active
Viewed 56 times
-2
-
1Tmp Solution: Open in IDLE and press F5 or add `input()` at end of code – Oisin Jan 15 '16 at 22:05
-
Are you running it from a terminal, command prompt, or just clicking on a file? – Peter Wood Jan 15 '16 at 22:07
-
1Just add this to the end of your program: `raw_input('Press Enter to exit')`: http://stackoverflow.com/questions/2322868/how-do-i-prevent-my-python-application-from-automatically-closing-once-reaching – paulsm4 Jan 15 '16 at 22:08
1 Answers
1
Add
input("Press Enter to continue...")
to the end of your file. It will wait for you to press Enter.

Bojan Bedrač
- 846
- 1
- 7
- 10