We need to check if at least one element of the iterable object evaluates to the truth. What built-in function can you use for this?

Questions & AnswersCategory: PythonWe need to check if at least one element of the iterable object evaluates to the truth. What built-in function can you use for this?
Geek Boy Staff asked 2 years ago

We need to check if at least one element of the iterable object evaluates to the truth. What built-in function can you use for this?
a. all()
b. any()
c. bool()
d. type()