What is the output of print(any([0, 0, 1])) in Python?
print(any([0, 0, 1]))
Correct answer
A. True
5 views
A. True
5 views
any() returns True if at least one item is truthy.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.