1.

a=0
b=1
if (a and b):
print("hi")
elif(not(a)):
print("hello")
elif(b):
print("hi world")
else:
print("hello world")
16.Which of the following are in correct order with respect to conditional statements in Python? (i) if (ii) else (iii) elif

A. i, iii, ii
B. ii, iii ,i
C. iii, ii, i
D. ii, i, iii
Answer» B. ii, iii ,i


Discussion

No Comment Found