Computer Science, asked by roya91777, 6 months ago

Write a program in python
to accept two dates (Current Date and Date of Birth) in DD MM

YYYY format Calculate and display the age of person on Current Date in years

months and days. ( Hint: 30 days = 1 month and 12 month=1 year)​

Answers

Answered by krishna5714
1

Explanation:

import datetime

current_year = int(datetime.datetime.now().year)

birth_year= int(input(Write only the year of birth: ))

age = birth_year - current_year

print(age)

you can make it more complecited but u know for these things you should try stackoverflow and github

Similar questions