The software serves as an example of an exception.
Program mistakes are managed using exceptions.
The Python program that uses comments to clarify each line is as follows:
This line defines the function get age.
Defining get age()
Age input is taken for this.
age = int("Age:" input)
If the age is between 18 and 75, this returns the age (inclusive)
if (age >= 18 and = 75):
inbound age
#If not, the ValueError is returned.
else:
declare ValueError ("Age is out of range or invalid")
The fat burning heart rate function is defined by this.
age = def fat burning heart rate
This gives you your heart's fat-burning rate.
return (0.7 * age - (220))
#The main starts right here.
#The attempt block is now in motion.
try:
Age input is taken for this.
get age = age ()
This displays your heart rate when burning fat.
fat burning heart rate(age),"bpm", "Fat burning heart rate for a", age,"year-old:"
Learn more about program here-
https://brainly.com/question/3224396
#SPJ4