What is the output of print(all([])) in Python?
print(all([]))
Correct answer
D. True
5 views
D. True
5 views
all() of an empty iterable is True.
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.