A

Admin • 833K Points
Coach

Q. What will be the result of following Python code snippet after execution?

Code:
a=0

b=1

if (a and b):

print("hi")

elif(not(a)):

print("hello")

elif(b):

print("hi world")

else:

print("hello world")
  • (A) hello world
  • (B) hi
  • (C) hi world
  • (D) hello
  • Correct Answer - Option(D)
  • Views: 23
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.