def list_inventory (inventory):
    """

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

    result = []

    for element, quantity in inventory.items():
        if quantity > 0:
            result.append ((element, quantity))

    return result