What is the output of print(all([1, 2, 3])) in Python?
print(all([1, 2, 3]))
Correct answer
D. True
8 views
D. True
8 views
all() returns True if all items are truthy.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is D? Ask here and get an explanation.