Which of the following expressions returns False?
-
A
bool(0)
Correct answer
-
B
bool("")
-
C
bool([])
-
D
bool(None)
Correct answer
A. bool(0)
17 views
Explanation
The integer 0 evaluates to False when converted to a boolean.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ