Buzzbow

game over timer

Aug 25th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. from time import sleep
  2.  
  3. length = 120
  4.  
  5. def countdown(t):
  6. while t > 0:
  7. minutes = t//60
  8. seconds = t%60
  9. print("Time remaining:", minutes, "minutes", seconds, "seconds")
  10. t -= 1
  11. sleep(1)
  12. print("Game Over!")
  13.  
  14. countdown(length)
Advertisement
Add Comment
Please, Sign In to add comment