Advertisement
Guest User

Timer

a guest
Jul 15th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. import time
  2.  
  3. def sleep():
  4.     time.sleep(1)
  5.     return x
  6. x = 100
  7.  
  8. while True:
  9.     print("Type START to start the countdown")
  10.     cmd = input()
  11.     start = cmd.lower();
  12.     if start == "start":
  13.         while x > 0:
  14.             print(x)
  15.             sleep()
  16.             x -=1
  17.         print("Hey Doods :D")
  18.         continue
  19.     else:
  20.         print("Invalid Word!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement