budget = int(input("How much is your budget to spend? ")) # vavariables smoothie = 6.5 pie = 6 wedges = 4.5 new_budget = 0 keep_going = "" while keep_going == "": food = input("what do you want to buy? A smoothie, pie or wedges? ") if budget >= wedges: if food == "smoothie" and budget >= smoothie: new_budget = budget - smoothie print(f"{food} you selected smoothie, you have {new_budget} remaining.") elif food == "pie": new_budget = budget - pie print(f"{food} you selected pie, you have {new_budget} remaining.") elif food == "wedges": new_budget = budget - wedges print(f"{food} you selected wedges, you have {new_budget} remaining.") else: print("You have entered an invalid option or do not have enough in your budget to purchase that item.") budget = new_budget if budget < wedges: print(f"{food} you have insufficient funds to make another purchase.") break else: keep_going = input("Do you want to select another item? Press the enter button to continue or no to exit. ") else: print(f"{food} you don't have enough funds.") break # Display output print("The program has ended")