Advertisement
teslariu

bomba

Sep 6th, 2022
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # 1) Hacer un script que implemente un contador descendente de una bomba
  5. # Por ejemplo:
  6. """
  7. 10
  8. 9
  9. 8
  10. 7
  11. 6
  12. 5
  13. 4
  14. 3
  15. 2
  16. 1
  17. BOOOMMMM
  18. """
  19. import time
  20.  
  21. num=10
  22. for i in range(num,0,-1):
  23.     print(i)
  24.     time.sleep(1)
  25. print("BOOM")    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement