# This program will ask for a name and the age.It check the age range and #display a message #collect input name = input("what is your name? ") print(f"kia ora {name} ") budget =int(input("how much is your budget to spend? ")) # Food item variables 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"{name} you selected smoothie, you have {new_budget} remaining.") elif food == "pie" and budget >= pie: new_budget = budget - pie print(f"{name} you selected pie, you have {new_budget} remaining.") elif food == "wedges": new_budget = budget - wedges print(f"{name} you selected wedges, you have {new_budget} remaining.") else: print("you have entered an invalid option or do not have enough in your budget") budget = new_budget if budget <= wedges: print (f"{name} you dont have enough in your budget to make a purchase") else : keep_going = input ("do you want to select another item? press the enter button to continue, or enter no to exit") else: print("insuficient funds!") break print("The program has ended")