@@ -13,15 +13,15 @@ If a user wants to add 2 Oranges, 'Oranges' will appear twice in the input itera
1313If the user already has the item in their cart, the cart quantity should be increased by 1.
1414If 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.
1717It 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