Certain parts of Python script not running -


under choose option 2 part. if input bread rest of part won't run. script ends there. wrong can tell me? don't error message script stops. other works

bread = 44 lettuce = 21 meat = 21 cheese = 23 sandwich = bread, lettuce.meat, cheese  choseoption = input('what mark order, add stock, or check stock')  if choseoption == 1:     neworder = input('what did order?')     if neworder == 'sandwich':         bread = bread - 4         lettuce = lettuce - 5         meat = meat - 7         cheese = cheese - 10         print(bread)         print(lettuce)         print(meat)         print(cheese  if choseoption == 2:     newstock = input('what add stock?')     if choseoption == 'bread':         addbread = input('how bread add? ')         bread = bread + addbread      if newstock == 'lettuce':         addletuce = input('how lettuce add?')         lettuce = lettuce + addletuce      if newstock == 'meat':         addmeat = input('how meat add?')         meat = meat + addmeat      if newstock == 'cheese':         addcheese = input('how cheese add?')         cheese = cheese + addcheese  if choseoption == 3:     viewitem = input('what item want view?')      if viewitem == 'bread':         print(bread)      if viewitem == 'lettuce':         print(lettuce)      if viewitem == 'meat':         print(meat)      if viewitem == 'cheese':         print(cheese) 

    print(cheese 

needs closing )


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -