(inventory)
return output
:param inventory: dict - an inventory dictionary.
    :return: list of tuples - list of key, value pairs from the inventory dictionary.
def list_inventory(inventory):
    """

    :param inventory: dict - an inventory dictionary.
    :return: list of tuples - list of key, value pairs from the inventory dictionary.
    """

    output = []
    for item in sorted(inventory.items()):
        if item[1] > 0:
            output.append(item)
    return output
def list_inventory ( inventory ) : output = [ ] for item in sorted ( inventory . items ( ) ) : if item [ 1 ] > 0 : output . append ( item ) return output