A

Admin • 832.27K Points
Coach

Q. What does the `any()` function return?

  • (A) True if any element is true
  • (B) True if all elements are true
  • (C) Returns the first true value
  • (D) Returns list of true elements
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`any()` returns `True` if at least one element in the iterable is true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.