Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- Contador regresivo que simula una bomba
- import time
- tiempo = int(input("Ingrese el tiempo: "))
- for t in range(tiempo,0,-1):
- print(t)
- time.sleep(1)
- print("BOOOMMM")
- # simulacion de un dado
- import random
- print("Simulación de un dado")
- while True:
- print('''
- 1. Arrojar el dado
- 2. Salir
- ''')
- opcion = input("> ")
- if opcion == "1":
- print(random.randint(1,6))
- elif opcion == "2":
- print("Fin de la simulación")
- break
- else:
- print("Opción incorrecta")
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement