Skip to content

Commit 1fd9f1c

Browse files
anym0usDmitrii Cheremushkin
andauthored
[Inventory Management] Update 'list_inventory' docstring summary (#3684)
Co-authored-by: Dmitrii Cheremushkin <[email protected]>
1 parent 087d474 commit 1fd9f1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exercises/concept/inventory-management/.meta/exemplar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def remove_item(inventory, item):
5555

5656

5757
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.
5959
6060
:param inventory: dict - an inventory dictionary.
6161
:return: list of tuples - list of key, value pairs from the inventory dictionary.

exercises/concept/inventory-management/dicts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def remove_item(inventory, item):
4545

4646

4747
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.
4949
5050
:param inventory: dict - an inventory dictionary.
5151
:return: list of tuples - list of key, value pairs from the inventory dictionary.

0 commit comments

Comments
 (0)