Vidyalelo
Python · Q42

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 42

Q42

What will be the output of the following Python code? ['f', 't'][bool('spam')]

A.
t
Answer
B.
f
C.
No output
D.
Error

Answer: Option A

Solution

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