Question: What is the output:try: user_age = int(input()) if user_age < 0: raise ValueError('Invalid age') # Source: https://www.heart.org/en/healthy-living/fitness avg_max_heart_rate = 220 - user_age print(f'Avg: {avg_max_heart_rate}') except

What is the output:try: user_age = int(input()) if user_age < 0: raise ValueError('Invalid age') # Source: https://www.heart.org/en/healthy-living/fitness avg_max_heart_rate = 220 - user_age print(f'Avg: {avg_max_heart_rate}') except ValueError as excpt: print(f'Error: {excpt}') Input 60

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!