Computer Science, asked by saniasethi169, 5 hours ago

Write a python program to find the age of the user.

Answers

Answered by Lovelymahima
2

Explanation:

birth_date = datetime. date(2000, 2, 1) Example dates.

end_date = datetime. date(2015, 3, 10)

time_difference = end_date - birth_date. Subtract end_date from birth_date.

age = time_difference. days. Get age in days.

print(age)

Answered by Barani22
2

Explanation:

time_difference = end_date - birth_date. Subtract end_date from birth_date.

age = time_difference. days. Get age in days.

print(age)

Similar questions