Created
November 8, 2019 18:44
-
-
Save LittleHaku/849e4f21619b97754f1cb21ded1339e6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| secret_num = 4 | |
| vidas = 0 #Contador | |
| intentos = 3 | |
| while vidas<intentos: | |
| intento = int(input("Adivina: ")) | |
| vidas += 1 | |
| if intento == secret_num: | |
| print("Has acertado") | |
| break | |
| else: | |
| print("Has fallado") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment