Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- # Function Convert to minutes:seconds
- def timeku(seconds):
- min, sec = divmod(seconds, 60)
- return "%02d:%02d" % (min, sec)
- Function count down
- def countdown(t):
- while t > 0:
- print(timeku(t))
- t -= 1
- sleep(1)
- if t == 0:
- print("Game Over Broo")
- countdown(120)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement