Examveda

What will be the output of the following Python code snippet?
['hello', 'morning'][bool('')]

A. error

B. no output

C. hello

D. morning

Answer: Option C


This Question Belongs to Python Program >> Bitwise And Boolean

Join The Discussion

Related Questions on Bitwise and Boolean