What is the output of print(bool([])) in Python?
print(bool([]))
Correct answer
A. False
6 views
A. False
6 views
An empty list is falsy.
Asked in: Python Interview Output Prediction
https://docs.python.org/3/reference/datamodel.htmlNot sure why the answer is A? Ask here and get an explanation.