I would like to know how to use system("pause")
from C++ in Python 2.7 to get similar effect. Could you help me?
Catchamouse 0 Newbie Poster
Recommended Answers
Jump to PostYou can use
from time import sleep sleep(1.5) # sleep 1.5 seconds
The precision of the sleep depends on your system (see timemodule.c for implementation details).
Also you may want to try
import os os.system("pause")
Finally, if you want to wait until ENTER …
All 3 Replies
Gribouillis 1,391 Programming Explorer Team Colleague
TrustyTony 888 pyMod Team Colleague Featured Poster
Catchamouse 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.