#version 3 #this program asks for name and budget name = input('name? ') print(f'Kia ora {name}') budget = int(input('budget? ')) smoothie = 6.5 pie = 6 wedges = 4.5 new_budget = 0 keep_going = '' while keep_going == '': food = input('what food do you want? a smoothie, pie, or wedges? ') if food == 'smoothie': new_budget = budget - smoothie print(f'{name} you selected a smoothie, you have {new_budget} remaining') elif food == 'pie': new_budget = budget - pie print(f'{name} you selected a pie, you have {new_budget} remaining') elif food == 'wedges': new_budget = budget - wedges print(f'{name} you selected a wedges, you have {new_budget} remaining') else: print('We dont got that') budget = new_budget if budget < wedges: print(f'{name} you dont have enough fund.') 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 have enough funds.') break print('The program has ended')