def first_item(iterable, default=None):
    """
    Returns the first item of given iterable.

    Parameters
    ----------
    iterable : iterable
        Iterable
    default : object
         Default value if the iterable is empty.
    Returns
    -------
    object
        First iterable item.
    """

    if not iterable:
        return default

    for item in iterable:
        return item