Guest User

Untitled

a guest
Nov 15th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import datetime
  2.  
  3. now = datetime.datetime.now()
  4.  
  5. name = input('What is your name?')
  6. age = int(input('How old are you? ' ))
  7.  
  8. strval = 'Hi ' + name + ', you will turn 100 in ' + str(((now.year + 100) - age)) + '\n'
  9.  
  10. ct = int(input('Number of copies of the last message you want printed: '))
  11.  
  12. print(ct*strval)
Add Comment
Please, Sign In to add comment