Last active
December 20, 2015 18:59
-
-
Save psicobyte/6179968 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
#!/usr/bin/python | |
#coding: utf-8 | |
def Saluda(nombre): | |
if nombre == "": | |
print "¡No has escrito nada!" | |
elif nombre == "Psicobyte": | |
print "¡Qué nombre tan chulo! ¿Eres hacker o algo así?" | |
elif nombre == "Python" or nombre == "python": | |
print "Tienes nombre de lenguaje de programación" | |
else: | |
print "Hola", nombre | |
Nombre1= raw_input("Escribe tu nombre: ") | |
Saluda(Nombre1) | |
Nombre2= raw_input("Escribe tu nombre: ") | |
Saluda(Nombre2) | |
Nombre3= raw_input("Escribe tu nombre: ") | |
Saluda(Nombre3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment