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
πŸ’¬ Discuss
βœ… Correct Answer: (A) True if any element is true
Explanation: `any()` returns `True` if at least one element in the iterable is true.
Explanation by: Mr. Dubey
`any()` returns `True` if at least one element in the iterable is true.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
91
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate