any() — Easy Examples
Returns True if at least one element in an iterable is truthy
Basic any() usage
Simple demonstration of the any() built-in function.
python
print(any([False, False, True])) print(any([0, 0, 0])) print(any([]))
any() is a built-in function that returns true if at least one element in an iterable is truthy.
any() with different inputs
Calling any() with various argument types.
python
# More any() examples print("any() is a Python built-in function") print(f"Type: {type(any)}")
any() accepts different types of arguments and produces corresponding results.
Want to try these examples interactively?
Open Easy Playground