-
-
Save parzibyte/58355bcbbd5d4a74917bbb28b23520fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
____ _____ _ _ _ | |
| _ \ | __ \ (_) | | | | |
| |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | |
| _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |
| |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ | |
|____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| | |
__/ | __/ | | |
|___/ |___/ | |
____________________________________ | |
/ Si necesitas ayuda, contáctame en \ | |
\ https://parzibyte.me / | |
------------------------------------ | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || | |
Creado por Parzibyte (https://parzibyte.me). Este encabezado debe mantenerse intacto, | |
excepto si este es un proyecto de un estudiante. | |
""" | |
import sys | |
intentos = 0 | |
maximo_intentos = 10 | |
frase_correcta = "Ábrete Sésamo" | |
nombre_ladron = input("Tu nombre: ") | |
while intentos < maximo_intentos: | |
frase = input("Ingresa la frase para abrir la puerta: ") | |
if frase == frase_correcta: | |
print("La puerta se ha abierto") | |
sys.exit() | |
else: | |
print("Incorrecto") | |
intentos += 1 | |
print("La puerta se ha cerrado para siempre") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment