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 == 1:
- suffix = "minute"
- else:
- suffix = "minutes"
- print(t//60, suffix, (t-(t//60)*60), "seconds")
- t -= 1
- sleep(1)
- countdown(120)
- print("Game Over")
Advertisement
Add Comment
Please, Sign In to add comment