Examveda

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

A. t

B. f

C. No output

D. Error

Answer: Option A


This Question Belongs to Python Program >> Bitwise And Boolean

Join The Discussion

Related Questions on Bitwise and Boolean