1.

27. a = 200b = 33if b> a:print("b is greater than a") elit a == bprint("a and b are equal")else:print("a is greater than b").in computer​

Answer»

Question:-To find the output of the following snippet.

a = 200

b = 33

if b> a:

PRINT("b is greater than a")

elif a == b

print("a and b are EQUAL")

else:

print("a is greater than b")

_____________________

Output:-

  • a is greater than b

_____________________

Explaination:-

  • condition 1:- b>a......false....33 is not greater than 200
  • condition 2:- a==b....false....33 is not equal to 200
  • so it will execute else statement...HENCE it will print "a is greater than b".

_____________________



Discussion

No Comment Found