Created
January 13, 2018 04:14
-
-
Save ALXTorresC/b9cced3da9103aa427506793ec991f0c 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
#-*- coding: utf-8 -*- | |
factor = 100 | |
def calculate(age, factor): | |
return age + factor | |
if __name__ == "__main__": | |
name = raw_input("ingresa tu nombre: ") | |
age = int(input("ingresa tu edad: ")) | |
iterations = int(input("ingresa un número para los mensajes: ")) | |
while iterations > 0: | |
print("Hola "+name+" en cien años tendras " + str(calculate(age$ | |
iterations-=1 | |
print("adiós") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Esta es mi solición al problema