The datetime module supplies classes for manipulating dates and times. You can use the date class of this module to compute the age in days.
Here is an example:
from datetime import datecurrentdate = date.today()birthday = date(1988, 11, 10)age = currentdate - birthdayprint(age.days)
from datetime import date
currentdate = date.today()
birthday = date(1988, 11, 10)
age = currentdate - birthday
print(age.days)