Computer Science, asked by khushilm15, 9 months ago

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 Anonymous
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