Skip to content

Instantly share code, notes, and snippets.

@odanga94
Created May 12, 2017 07:00
Show Gist options
  • Save odanga94/7309a6137d18ba20b09325d89a210e99 to your computer and use it in GitHub Desktop.
Save odanga94/7309a6137d18ba20b09325d89a210e99 to your computer and use it in GitHub Desktop.
PracticePython/Exercise1
import datetime
name = raw_input("Enter your name:")
age = int(input("Enter your age:"))
now = datetime.datetime.now()
year = now.year + (100 - age)
message = "Hey %s you will turn 100 years old in the year %d" %(name, year)
number = int(input("How many times would you like to print the message?"))
for i in range(number):
print message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment