Skip to content

Instantly share code, notes, and snippets.

@LittleHaku
Created November 8, 2019 18:44
Show Gist options
  • Select an option

  • Save LittleHaku/849e4f21619b97754f1cb21ded1339e6 to your computer and use it in GitHub Desktop.

Select an option

Save LittleHaku/849e4f21619b97754f1cb21ded1339e6 to your computer and use it in GitHub Desktop.
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