import datetime Year_of_birth = int(input("In which year you took birth:- ")) current_year = datetime.datetime.now().year Current_age = current_year - Year_of_birth print("Your current age is ",Current_age)