Any() method in Python Built in Function
any method in built function returns the absolute value as TRUE if any one of the item is true in the argument.
Syntax:
any(iterable)
Table of any method
| When | Value |
| All values are true | True |
| All values are false | False |
| Only one value is True | True |
| Only one value is False | True |
| Only Iterable | False |
Example-1:
When all values are TRUE
text = [True, True, True] x = any(text) print(x)
Output:

Example-2:
When all values are FALSE
text = [False, False, False] x = any(text) print(x)
Output:

Example-3:
When only one value is TRUE
text = [True, False, False] x = any(text) print(x)
Output:

Example-4:
When only value is FALSE
text = [True, True, False] x = any(text) print(x)
Output:

Example-5:
When the Iterable is empty
text = [] x = any(text) print(x)
Output:
