(iterable)
return flattened
Flatten a list of lists.
Flatten a list of lists.
Flatten a list of lists .
def flatten(iterable):
    """Flatten a list of lists."""
    flattened = []
    for item in iterable:
        if is_iterable(item) and not isinstance(item, (str, bytes)):
            flattened += flatten(item)
        elif item is not None:
            flattened.append(item)
    return flattened
def flatten ( iterable ) : flattened = [ ] for item in iterable : if is_iterable ( item ) and not isinstance ( item , ( str , bytes ) ) : flattened += flatten ( item ) elif item is not None : flattened . append ( item ) return flattened