Test if every list element is truthy
Checks if the provided function returns True
for every element in the list.
- Use
all()
in combination withmap()
andfn
to check iffn
returnsTrue
for all elements in the list.
Checks if the provided function returns True
for every element in the list.
all()
in combination with map()
and fn
to check if fn
returns True
for all elements in the list.