Skip to content

Instantly share code, notes, and snippets.

@Jackustc
Created November 27, 2017 00:15
Show Gist options
  • Select an option

  • Save Jackustc/9d82c92e3cf6f84fb582b8505a112e7e to your computer and use it in GitHub Desktop.

Select an option

Save Jackustc/9d82c92e3cf6f84fb582b8505a112e7e to your computer and use it in GitHub Desktop.
import time
name = input('Please intput your name:')
age = input('Please input your age:')
#get current year
Current_year =time.strftime('%Y', time.localtime(time.time()))
year = str(int(Current_year)-int(age) + 100)
print(name + ': in ' + year + ', you will be 100 age')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment