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")
β
Correct Answer: (D)
hello