This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
name = input('your name: ') | |
age = int(input('current age: ')) | |
num = int(input('any number: ')) | |
now = datetime.datetime.now() | |
future = now.year - age + 100 | |
print('Name ', name) | |
print('You will be 100 year old in ', future, 'year') | |
for n in range(1,num+1): |