Hello I need help with my python code:
Develop and test a Python code that determines how many breaths and how many heartbeats a person has had in their life. The program should prompt the user for their age then use the average respiration rates (breaths per minute) given below to calculate the number of breaths and heartbeats for that person's age.
Average Respiration Rate (Breaths Per Minute)
Infant 25
1-4 years 20
5-14 years 15
15 years and above 11
For heart rate, use an average of 67.5 beats per minute
Assume the age is always entered as an integer
Assume that there are 525600 minutes in a year
Requirements for This Question:
1. A function called calculateBreaths() that takes the age as an input variable and returns the number of breaths.
2. A function called calculateHeartbeats() that takes the age as an input variable and returns the number of heartbeats.
3. A function called main() that prompts the user for their age and then calls each of the two functions above, calculateBreaths() and calculateHeartbeats() , and then prints out their results.
example: it would print out:
"A 3 year old has had 31536000 breaths and 106436000 heartbeats."