any

any(iterable)

Returns True if any element of the iterable is true (built-in).

iterable??

REMARKS
* No prefix required - Core
* Return True if any element of the iterable is true.
* If the iterable is empty, return False.
* For the Official documentation refer to python.org

def any(iterable): 
    for element in iterable:
        if element:
            return True
    return False

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top