Examveda

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")

A. error

B. hello

C. good

D. bad

Answer: Option C


This Question Belongs to Python Program >> Bitwise And Boolean

Join The Discussion

Related Questions on Bitwise and Boolean