Python Forum

Full Version: how to enter a pause in the middle of a file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
Many thanks. It works well. Very simple indeed !