Vidyalelo
Python · Q31

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 31

Q31

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

A.
error
B.
no output
C.
hello
Answer
D.
morning

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board