Question: def check _ negative ( num ) : if num < 0 : # Line 1 return the number is negative # Line 2 return
def checknegativenum:
if num : # Line
return "the number is negative" # Line
return "the number is positive" # Line
printthank you" # Line
printall done" # Line
checknegative
When the function checknegative 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
