Jun-11-2017, 06:14 AM
Hi all. With C++ I stop running for a pause with cin.get(), I tell to the user "Press ENTER to continue". What is the equivalent with python ??
my code here
how to enter a pause in the middle of a file
|
Jun-11-2017, 06:14 AM
Hi all. With C++ I stop running for a pause with cin.get(), I tell to the user "Press ENTER to continue". What is the equivalent with python ??
my code here
Jun-11-2017, 06:34 AM
input('Press ENTER to continue: ')Although, if you are running Python 2.x, you will want to use raw_input instead. In Python 2.x input will try to evaluate the text that it gets, which may cause an error.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Jun-11-2017, 06:46 AM
Many thanks. It works well. Very simple indeed !
|
|