Question: What is output by the call warning ( 4 5 ) ? def warning ( hp ) : if h p > 5 0 :

What is output by the call warning (45)?
def warning(hp) :
if hp>50 :
print("You're fine.", )
if hp>90 :
print("You don't need healing.")
else:
print("You could heal.")
else:
print("You're not fine.", )
if hp>20 :
print("You should heal.")
else:
print ("Heal NOW!")
You're fine. You could heal.
You're fine.
You could heal.
You're not fine. You should heal.
You're not fine. Heal Now!
You're not fine.
You should heal.
 What is output by the call warning (45)? def warning(hp) :

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 Databases Questions!