Skip to content

Instantly share code, notes, and snippets.

@ALXTorresC
Created January 13, 2018 04:14
Show Gist options
  • Save ALXTorresC/b9cced3da9103aa427506793ec991f0c to your computer and use it in GitHub Desktop.
Save ALXTorresC/b9cced3da9103aa427506793ec991f0c to your computer and use it in GitHub Desktop.
#-*- 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")
@ALXTorresC
Copy link
Author

Esta es mi solición al problema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment