Question: how to calculate age in years months and days in python?
Answer: Use datetime. timedelta to calculate age in days Initialize birth_date and end_date with date(year, month, day) objects. Subtract birth_date from end_date . Access the days attribute of the datetime. timedelta result to see the age in days.