type_conversion

Run Settings
LanguagePython
Language Version
Run Command
#have user input their birth year, and then have the program return "You are ___ years old" birth_year = int(input('What year were you born in?')) from datetime import date current_date = date.today() current_year = current_date.year age = current_year-birth_year print(f'\nYou are {age} years old.')
Editor Settings
Theme
Key bindings
Full width
Lines