Created
October 1, 2018 19:19
-
-
Save Ad115/6674a5a7d91d20b1cb33c521580c0eb7 to your computer and use it in GitHub Desktop.
Ejemplo de un error lógico
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
edad = int(input("Cuántos años tienes?")) | |
if edad > 65: | |
print("Ya te jubilaste?") | |
if edad > 21: | |
print("Ya eres un adulto.") | |
if edad > 13: | |
print("Eres todo un joven adolescente.") | |
else: | |
print("Eres un niño!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment