#this program will ask for a name and the age. it will check the age range and #display a welcome message #collect iput name = input('what is your name?') print(f'kia ora {name} ') budget = int(input('what would your budget be?')) # Food item variables smoothie = 6.5 pie = 6 wedges = 4.5 new_budget = 0 keep_going = '' while keep_going: food = input(f'what would you like to buy {name}, a smoothie, pie or wedges?') smoothie = 6.5 pie = 6 wedges = 4.5 keep_going = '' food = input(f'what would you like to buy {name}, a smoothie, pie or wedges?') if food == 'smoothie': new_budget = budget - smoothie print(f'dont spend it to fast {name}, you have {new_budget}') elif food == 'wedges': new_budget = budget - wedges print(f'good choice, you have {new_budget} left') elif food == 'pie': new_budget = budget - pie print('can you get me one to? you have {new_budget} left') else: print('you have entered an invalid option') print('if you would like to try something else, please push enter') budget = new_budget if budget < wedges: print(f'{name} you have insuficiant funds to make another purchase.') break elif budget < pie: print(f'{name} you have insuficiant funds to make another purchase.') break elif budget < smoothie: print(f'{name} you have insuficiant funds to make another purchase.') break else: keep_going = input('do you want to select another item? press enter to continue or no to exit.') else: print (f'{name} you do not haave enough budget.') break # display output print('this has ended')