File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
exercises/concept/inventory-management Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def remove_item(inventory, item):
55
55
56
56
57
57
def list_inventory (inventory ):
58
- """Create a list containing all (item_name, item_count) pairs in inventory.
58
+ """Create a list containing only available (item_name, item_count > 0 ) pairs in inventory.
59
59
60
60
:param inventory: dict - an inventory dictionary.
61
61
:return: list of tuples - list of key, value pairs from the inventory dictionary.
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def remove_item(inventory, item):
45
45
46
46
47
47
def list_inventory (inventory ):
48
- """Create a list containing all (item_name, item_count) pairs in inventory.
48
+ """Create a list containing only available (item_name, item_count > 0 ) pairs in inventory.
49
49
50
50
:param inventory: dict - an inventory dictionary.
51
51
:return: list of tuples - list of key, value pairs from the inventory dictionary.
You can’t perform that action at this time.
0 commit comments