Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- def countdown(t):
- while t > 0:
- if (t//60>0):
- print(t//60, " minutes and ", t%60, " seconds")
- else:
- print(t%60, " seconds")
- t = t - 1
- sleep(1)
- print("Game Over!")
- countdown(120)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement