Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # 1) Hacer un script que implemente un contador descendente de una bomba
- # Por ejemplo:
- """
- 10
- 9
- 8
- 7
- 6
- 5
- 4
- 3
- 2
- 1
- BOOOMMMM
- """
- import time
- num=10
- for i in range(num,0,-1):
- print(i)
- time.sleep(1)
- print("BOOM")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement