Skip to content
masterclass Buddy

Python · Function

any

any() returns True if at least one item in an iterable is true. It returns False when all items are false or the iterable is empty.

Last updated

Syntax

any(iterable, /)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • all()
  • iter()
  • bool()

Source: Built-in functions — Python 3.15.2 documentation. Checked 2026-11-03.