Question: def check _ negative ( num ) : if num < 0 : # Line 1 return the number is negative # Line 2 return

def check_negative(num):
if num <0: # Line 1
return "the number is negative" # Line 2
return "the number is positive" # Line 3
print("thank you") # Line 4
print("all done") # Line 5
check_negative(220)
When the function check_negative is called, how many lines of the function body are executed? (NOTE: do not count the function call and the function header)

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!