#Need help with dictionary method exercise: Mecha Munch Management

2 messages · Page 1 of 1 (latest)

hexed apex
#
def send_to_store(cart, aisle_mapping):
    """Combine users order to aisle and refrigeration information.

    :param cart: dict - users shopping cart dictionary.
    :param aisle_mapping: dict - aisle and refrigeration information dictionary.
    :return: dict - fulfillment dictionary ready to send to store.
    """
    updated_dict = {}
    for item, values in aisle_mapping.items():
        info = [cart[item]] + values
        updated_dict[item] = info
        
    return dict(sorted(updated_dict.items(), reverse=True))

this solution is working locally.

wraith smelt
#

it seems to pass on the web as well, so what's your issue?