What will be the output of the following Python code?
if (9 < 0) and (0 < -9):
    print("hello")
elif (9 > 0) or False:
    print("good")
else:
    print("bad")
        if (9 < 0) and (0 < -9):
    print("hello")
elif (9 > 0) or False:
    print("good")
else:
    print("bad")A. error
B. hello
C. good
D. bad
Answer: Option C
Related Questions on Bitwise and Boolean

Join The Discussion