What will be the output of the following Python code snippet?
['hello', 'morning'][bool('')]
['hello', 'morning'][bool('')]A. error
B. no output
C. hello
D. morning
Answer: Option C
Related Questions on Bitwise and Boolean
['hello', 'morning'][bool('')]A. error
B. no output
C. hello
D. morning
Answer: Option C
Join The Discussion