Open soodsid opened 10 months ago
a. add_item(self, item): Adds an item to the shopping cart by appending it to the list of items. b. remove_item(self, item): Removes an item from the shopping cart if it exists in the list. c. view_cart(self): Displays the items currently present in the shopping cart. d. clear_cart(self): Clears all items from the shopping cart by reassigning an empty list to the items attribute.