#Take birth year as a input from user. birth_year = input("What is your birth year? : ") #Subtract birth year from current year. age = 2022 - int(birth_year) #Display calculated age. print("You are " + str(age) + " years old.")