Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 20, 2020 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/58355bcbbd5d4a74917bbb28b23520fb to your computer and use it in GitHub Desktop.
Save parzibyte/58355bcbbd5d4a74917bbb28b23520fb to your computer and use it in GitHub Desktop.
"""
____ _____ _ _ _
| _ \ | __ \ (_) | | |
| |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___
| _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \
| |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/
|____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___|
__/ | __/ |
|___/ |___/
____________________________________
/ 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