Question: Consider the following functions: Function 1 def block _ 1 ( A , B ) : if A: print ( Branch 1 )
Consider the following functions:
Function
def blockA B:
if A:
printBranch
elif B:
printBranch
Function
def blockA B:
if A:
printBranch
if not B or A:
printBranch
Do both of these functions display the same code for all inputs?
True
False
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
