Can I make a python delay? -


this question has answer here:

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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -