# This program will ask for a name and the budget. It will check the budget range and #display a message name = input("What is your name? ") print (f"Hello {name}!") budget = float(input('How much is your budget to spend? ')) # Food item variables smoothie = 6.5 pie = 6 wedges = 4.5 keep_going = "" while keep_going == "": #item selection if budget < 4.5: print("Sorry, you don't have enough money to buy anything / anything else.") break food = input("What do you want to buy? A smoothie, pie or wedges? ") if food == "smoothie": if budget < 6.5: print("Sorry, you don't have enough money to buy this item.") break elif budget >= 6.5: budget = budget - smoothie print (f"{name},you selected smoothie, you have ${budget} remaining to spend.") elif food == "pie": if budget < 6: print("Sorry, you don't have enough money to buy this item.") break elif budget >= 6: budget = budget - pie print (f"{name},you selected pie, you have ${budget} remaining to spend.") elif food == "wedges": if budget < 4.5: print("Sorry, you don't have enough money to buy this item.") break elif budget >= 4.5: budget = budget - wedges print (f"{name},you selected wedges, you have ${budget} remaining to spend.") else: print("you have entered an invalid option.") keep_going = input("Do you want to buy another item? Press enter to continue shopping or type no to exit.") if keep_going != "": print (f"No worries, {name}.") print(f"Enjoy your {food}.") print(f'Thanks for shopping with us, {name}!') print ("This program has ended")