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