Python Forum
how to enter a pause in the middle of a file
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to enter a pause in the middle of a file
#1
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
Reply
#2
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
Reply
#3
Many thanks. It works well. Very simple indeed !
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I pause only one object? actualpy 1 369 Feb-01-2024, 07:43 PM
Last Post: deanhystad
  How to pause execution (on windows)? pstein 1 569 Jun-23-2023, 06:58 PM
Last Post: rob101
  why is yfinance returning an ellipsis in the middle of ticket history db042190 3 978 Jun-12-2023, 06:03 PM
Last Post: db042190
  Is it Possible to pause a script? tester_V 6 1,535 Apr-05-2023, 06:11 AM
Last Post: tester_V
  Did subprocess.Popen() causes main routine to pause stdout? liudr 4 3,666 May-04-2021, 08:58 PM
Last Post: liudr
  Not able to make a specific thing pause in pygame cooImanreebro 4 3,231 Dec-13-2020, 10:34 PM
Last Post: cooImanreebro
  Spyder hides middle array values in variable explorer window davidqvist 0 2,398 Aug-03-2018, 11:04 AM
Last Post: davidqvist
  How to Make Python code execution pause and resume to create .csv and read values. Kashi 2 3,777 Jun-14-2018, 04:16 PM
Last Post: DeaD_EyE
  how to pause pyxhook keylogger johweb 0 2,380 Jun-13-2018, 03:17 PM
Last Post: johweb
  How to pause/interupt with keyboard jehoshua 5 7,236 Mar-20-2018, 05:52 AM
Last Post: jehoshua

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020