Question discussion

Select the correct output for the following python code?a = 20 b = 35 if a >= b: print (“yes”) else: print (“No”)

3474Medium DSSSB TGT Computer Science 0 replies

Select the correct output for the following python code?

a = 20
b = 35
if a >= b:
    print (“yes”)
else:
    print (“No”)
  • ASyntax
  • BNo
  • CYes
  • DError
Correct answer: B

Explanation

a = 20 and b = 35, so a >= b is False and the else part prints No.

Discussion 0

Nobody has replied yet. Start the discussion!