Guest User

Untitled

a guest
Nov 12th, 2017
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import time
  2.  
  3.  
  4. def timer(how_long):
  5.     for x in range(0, how_long):
  6.         time.sleep(1)
  7.  
  8. new = input("Say something..")
  9. timer(5)
  10. print("It took you 5 seconds to answer!")
Advertisement
Add Comment
Please, Sign In to add comment