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