Test if some list elements are truthy
Checks if the provided function returns True for at least one element in the list.
- Use
any()in combination withmap()to check iffnreturnsTruefor any element in the list.
Checks if the provided function returns True for at least one element in the list.
any() in combination with map() to check if fn returns True for any element in the list.