Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- now = datetime.datetime.now()
- name = input('What is your name?')
- age = int(input('How old are you? ' ))
- strval = 'Hi ' + name + ', you will turn 100 in ' + str(((now.year + 100) - age)) + '\n'
- ct = int(input('Number of copies of the last message you want printed: '))
- print(ct*strval)
Add Comment
Please, Sign In to add comment