Can I make a python delay? -
this question has answer here:
- how can make time delay in python? 8 answers
how make have small delay in python?
i want display 3 seconds after afterwards , let user input something
here have
print "think of number between 1 , 100" print "then shall guess number"
i want delay here
print "i guess", computerguess raw_input ("is lower or higher?")
this should work.
import time print "think of number between 1 , 100" print "then shall guess number" time.sleep(3) print "i guess", computerguess raw_input ("is lower or higher?")
Comments
Post a Comment