def find_closest_stores(friends, stores):
    """
    Finds the closest store to each friend based
    on absolute distance from the store.

    Parameters:
        friends: Dictionary with friend names as keys
        and point location as values.
        stores: Dictionary with store names as keys
        and point locations as values.
    Returns:
        Dictionary with friends names as keys and the
        store closest to them as values.

    >>> friends1 = {'rob': 10, 'bob': 12}
    >>> stores1 = {'walmart': 11, 'costco': 12}
    >>> find_closest_stores(friends1, stores1)
    {'rob': 'walmart', 'bob': 'costco'}

    >>> friends2 = {'bob': 12}
    >>> stores2 = {'target': 12, 'costco': 12}
    >>> find_closest_stores(friends2, stores2)
    {'bob': 'costco'}

    # My doctests

    >>> friends3 = {'joe': 10, 'jack': 20}
    >>> stores3 = {'target': 5, 'walmart': 16}
    >>> find_closest_stores(friends3, stores3)
    {'joe': 'target', 'jack': 'walmart'}

    >>> friends4 = {'bob': 12}
    >>> stores4 = {'target': 12, 'costco': 12, 'apple': 12}
    >>> find_closest_stores(friends4, stores4)
    {'bob': 'apple'}

    >>> friends5 = {'joe': 0, 'jack': 2.5}
    >>> stores5 = {'target': 1.25, 'walmart': 1}
    >>> find_closest_stores(friends5, stores5)
    {'joe': 'walmart', 'jack': 'target'}
    """
    return {names: min([(abs(distance - locations), store) \
            for store, distance in stores.items()])[1] \
            for names, locations in friends.items()}