It is going to check if it's in the list, add that list to another list called checkout
, and print out a receipt.
BMenu = [['Item','', 'Cost'],
['HamBurger', '$',38],
['CheeseBurger', '$', 38],
['Double CheeseBurger', '$', 33],
['Grill Chicken Sandwich', '$', 38],
['Crispy Chicken Sandwich', '$', 38],
['Spicy Chicken Sandwich', '$', 38]]
BR = input('What would you like to order?: ')
if BR in list(BMenu):
print('In list')
else:
print('Not on the menu')