Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import datetime
  2.  
  3. name = raw_input('Hello whats your name: ')
  4. age = int(raw_input("Whats your age: "))
  5. times = int(raw_input("How many times print: "))
  6. currentYear =datetime.datetime.now().year
  7.  
  8. for i in range(0,times):
  9. print(name + " is " + str(age) + " years old! and will be 100 years old in " + str(100 - age + currentYear))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement