Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. start = input("Would you like to begin yes/no?")
  2. while start not in ("yes"):
  3. print("You must enter yes to continue.")
  4. start = input("Would you like to begin yes/no?")
  5. while start == "yes":
  6. while start not in ("yes"):
  7. start = input("Would you like to begin yes/no?")
  8.  
  9. condition = ("True")
  10. while condition == ("True"):
  11. import time
  12. import random
  13.  
  14. def countdown(count):
  15. while (count >= 0):
  16. print ('The count is: ', count)
  17. count -= 1
  18. time.sleep(1)
  19.  
  20. countdown(random.randint(3, 7))
  21. starter = time.time()
  22. input("Go")
  23. ender = time.time()
  24. print (ender - starter)
  25.  
  26.  
  27. if input("Would you like to input again?") == "no":
  28. condition = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement