I would like to make an age calculator, and I would like to find the number of years only, how can I achieve it based on the code I provide?
import datetime
print('birthday')
birthday=datetime.date(1997,7,1)
print(birthday)
print('today')
current=datetime.date.today()
print(current)
age=(current-birthday)//365
print('age')
print(age)
I expect the output should be 21 years, but the actual output is 21 days plus some unexpected info