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.
SubscribeRelated
all()iter()bool()