You are planning a program to find the maximum heart rate recommended for patrons of a gym where you have a part-time job. One formula for calculating
the maximum heart rate is the difference between 220 and the patron's age.
You are testing for accuracy.
If a patron is 15 years old, what is the maximum heart rate?

Respuesta :

The program would look like:

age = int(input("What's your age? "))

print(f"Your maximum heart rate is {220 - age}.")

If we input 15 as the age, the maximum heart rate is 220 - 15, which equals 205