Question #897

What is the output of the code snippet below?
print(any([[], [], []]))

any() returns True if any of the elements of a given iterable is True . The list given to any() in the example above only contains empty lists, which individually evaluate to False . any() will return False . (programiz.com/python-programming/methods/built-in/any)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: