Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 513 Bytes

File metadata and controls

43 lines (35 loc) · 513 Bytes

any

Description

Returns a Boolean value that indicates whether the collection contains any values that evaluate to True.

Syntax

any (iterable)

iterable
Required. Any iterable type.

Return Value

#TODO

Time Complexity

#TODO

Remarks

If the iterable is empty, returns False.

Example

>>> any([True, True])
True
>>> any([True, False])
True
>>> any([False, False])
False
>>> any('False')
True
>>> any([])
False

See Also

#TODO