How to return 'false' because all elements are 'false'?
The given list is:
data = [False, False, False]
Using any:
any
>>> data = [False, False, False] >>> not any(data) True
any will return True if there's any truth value in the iterable.
1.4m articles
1.4m replys
5 comments
57.0k users