Skip to content

Commit c4925ea

Browse files
authored
Modified instructions to use add_item instead of add_items. (#3774)
1 parent b4391bc commit c4925ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/concept/mecha-munch-management/.docs/instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ If a user wants to add 2 Oranges, 'Oranges' will appear twice in the input itera
1313
If the user already has the item in their cart, the cart quantity should be increased by 1.
1414
If the item is _new_ to the cart, it should be added with a quantity of 1.
1515

16-
Create the function `add_items(<current_cart>, <items_to_add>)` that takes a cart dictionary and any list-like iterable of items to add as arguments.
16+
Create the function `add_item(<current_cart>, <items_to_add>)` that takes a cart dictionary and any list-like iterable of items to add as arguments.
1717
It should return a new/updated shopping cart dictionary for the user.
1818

1919
```python
20-
>>> add_items({'Banana': 3, 'Apple': 2, 'Orange': 1},
20+
>>> add_item({'Banana': 3, 'Apple': 2, 'Orange': 1},
2121
('Apple', 'Apple', 'Orange', 'Apple', 'Banana'))
2222
{'Banana': 4, 'Apple': 5, 'Orange': 2}
2323

24-
>>> add_items({'Banana': 3, 'Apple': 2, 'Orange': 1},
24+
>>> add_item({'Banana': 3, 'Apple': 2, 'Orange': 1},
2525
['Banana', 'Orange', 'Blueberries', 'Banana'])
2626
{'Banana': 5, 'Apple': 2, 'Orange': 2, 'Blueberries': 1}
2727
```

0 commit comments

Comments
 (0)