Created
August 6, 2019 05:38
-
-
Save parzibyte/b06d100697b4a111f6c7d6c5b2195444 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
# Para preguntarle al usuario algo de sí o no | |
eleccion = input("¿Te gusta Python? [S/N] ") | |
# Convertirlo a minúscula, así no importa si dice S o s, o N o n | |
if eleccion.lower() == "s": | |
print("A mí también") | |
else: | |
print("Deberías probarlo, es un buen lenguaje de programación") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment