generate functionMon, 21 Nov 2022

Create an application that asks the user to enter the monthly budgeted amount. The user should then be prompted via a loop to enter each of their monthly spending and maintain a running total. The application should show how much the user is spending more or less than they had planned after the loop is finished.

++ def budget(budget): return budget def spending(spending): return spending def over_under(budget, spending): return budget - spending budget = float(input('Enter your budgeted amount: ')) spending = float(input('Enter your spending: ')) print('You are under budget by: ' + str(over_under(budget, spending)))

Questions about programming?Chat with your personal AI assistant