DS160123What will be the output

Date:- 27/02/2023
What will be the output of the following python code?
def printMax(a,b):
if a > b:
print(a,‘is maximum’)
elif a == b:
print(a,is equal to’, b)
else:
print(b,‘is maximum’)
printMax(3,4)
[a] 3 [b] 4 is maximum [c] 4 [b] none of the mentioned

3 Likes

Good going @sms18680 . 4 is the correct answer

2 Likes