(iterable: Iterable[T])
Returns the first element from the given iterable.
Returns the first element from the given iterable.
Returns the first element from the given iterable .
def first(iterable: Iterable[T]) -> T:
    """Returns the first element from the given iterable."""
    for item in iterable:
        return item
    raise ValueError("iterable is empty")
def first ( iterable : Iterable [ T ] ) -> T : for item in iterable : return item raise ValueError ( "iterable is empty" )