A
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")
b=1
if (a and b):
print("hi")
elif(not(a)):
print("hello")
elif(b):
print("hi world")
else:
print("hello world")
- Correct Answer - Option(D)
- Views: 23
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.