Pizza Menu


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<In what way does your code behave incorrectly? Include ALL error messages.>
The code does not register the type of pizza base chosen. I have tried every combination.

<What do you expect to happen instead?>
It needs to register the base and continue the code. I was thinking of having something to restart my loop. The toppings section of the code must loop while the user inputs their selected toppings while displaying the topping price.


user = input("Please enter your name:")
print("Hello {} welcome to Pizza World. Please make your pizza.".format(user))
print("\n")
pizzaparts = ["Base", "Crust", "Sauce","Toppings", "Specials", "Drinks"]
pizzachoice =["Regular Dough", "Buckwheat Dough","Thin", "Thick", "Garlic stuffed", "Cheese stuffed", "Tomato", "Garlic", "Barbecue", "Szechuan", "Pepperoni", "Olives", "Mozarella", "Chicken", "Beef Jerky", "Blue cheese", "Mint Leaf"]
prices = [10, 20, 10, 15, 20, 25 , 10, 15, 20, 40, 15, 10, 20, 15, 10, 20, 10, 10, 10]
chosen =[]
chosenvalue = []
prices = []
item = ""
total = 0 
dayend = False

while dayend == False:
   print("Please chose a base for your pizza. Regular Dough or Buckwheat Dough")
   item = input()
   item = item.lower()
   if chosen == 1 or chosen == 2:
     print("You have selected a base for your pizza")
   else:
     print("We do not offer this type of base")   
   item = input()   
   item = item.lower()
   temppos = pizzachoice.index(item)
   chosen.append(item)
   total += prices[temppos]
   chosenvalue.append(prices[temppos])
   print("\n")
   
   print("Please chose a crust for your pizza. Thin, Thick, Garlic stuffed or Cheese stuffed.")
   item = input()
   item = item.lower()
   if (item not in pizzachoice) or (item < 5):
     print("We don't offer this")
   item = input()   
   item = item.lower()
   temppos = pizzachoice.index(item)
   chosen.append(item)
   total += prices[temppos]
   chosenvalue.append(prices[temppos])
   print("\n")

   print("Please chose a sauce for your pizza. Tomato, Garlic, Barbecue, Szechuan")
   item = input()
   item = item.lower()
   if (item not in pizzachoice) or (item < ):
     print("We don't offer this")
   item = input()   
   item = item.lower()
   temppos = pizzachoice.index(item)
   chosen.append(item)
   total += prices[temppos]
   chosenvalue.append(prices[temppos])
   print("\n")

   print("Please chose toppings for your pizza. Pepperoni, Olives, Mozarella, Chicken")
   item = input()
   item = item.lower()
   if (item not in pizzachoice) or (item < ):
     print("We don't offer this")
   item = input()   
   item = item.lower()
   temppos = pizzachoice.index(item)
   chosen.append(item)
   total += prices[temppos]
   chosenvalue.append(prices[temppos])
   print("\n")

#2

chosen is a list:

chosen =[]

and then here:

if chosen == 1 or chosen == 2:

it has to equal an integer? A list will never equal an integer. What do you attempt here?