Create a Python program by defining a function that calculates the year of birth of a person whose age is known to you.(You may use an input statement to ask the user to enter their age)
pls fast it is urgent
Answers
Answered by
0
Answer:
#program to find the age of a person after inputting the date of birth
def age(by,py):
a=py-by
return a
#main
date=str(input("enter the date of birth"))
birth_year=int(input("enter the year of birth"))
present_year=int(input("enter the present year"))
print(age(birth_year,present_year))
#hope it helps you
please mark it brainliest
Similar questions
Math,
4 months ago
Math,
4 months ago
Math,
9 months ago
Social Sciences,
9 months ago
English,
1 year ago