
Continue working on SupermarketApplication and do the following:
Refer to the comments below:
def application_loop(self):
while True:
selection = input(self.menu)
if selection == "1":
item = self.menu_items["1"]
self.shopping_cart.append(item)
# print "you bought {name} for {price}"
elif selection == "2":
item = self.menu_items["2"]
self.shopping_cart.append(item)
elif selection == "3":
item = self.menu_items["3"]
self.shopping_cart.append(item)
elif selection == "4":
break
# right here outide the while loop
# use a for loop to print the items in the shopping_cart listIf you have any questions, you can contact me at ddjapri@ayclogic.com