title: Running total of expenses issue in Python code
body: <p>I am in my first coding class in college and having an issue with an assignment. Details of the assignment and my issue, as well as what I have so far, are below:</p>
  
  <pre><code>'''
      Author: Frankie Barrios
      Date: 10.2.17
      Purpose: Budget Analysis Program
      Design a program that asks the user to enter the amount
      that he or she has budgeted for a month. A loop should then prompt
      the user to enter each of their expenses for the month, and keep a
      running total. When the loop finishes, the program should display
      the amount that the user is over or under budget.
  '''
  
  #Main Module
  expense = 0.0
  budget = 0.0
  difference = 0.0
  expenseTotal = 0.0
  
  total_expense = 0
  keep_going = 'y'
  
  
  #Input Module
  budget = float(input("What is your budget for the month?"))
  print("Please begin entering the amounts of each of your monthly expenses:")
  
  while keep_going == 'y':
      expense = float(input("Monthly expense amount? $"))
  #*Having an issue keeping the expense running total at the end of the program?*
      total_expense = total_expense + expense
      keep_going = input("Do you have any other expenses? (Enter y for yes.)")
  
  #Calculations Module
  if expense &lt; budget:
      difference = budget - expense
      print("You were $", difference, " under budget.")
  
  elif expense &gt; budget:
      difference = expense - budget
      print("You were $", difference, " over budget.")
  
  else:
      print("You were right on budget. Great Job!!!")
  
  
  input("Press enter to exit.")
  </code></pre>
  
  <p><strong><em>Results I am getting:</em></strong></p>
  
  <p>What is your budget for the month?1000</p>
  
  <p>Please begin entering the amounts of each of your monthly expenses:</p>
  
  <p>Monthly expense amount? $100</p>
  
  <p>Do you have any other expenses? (Enter y for yes.)y</p>
  
  <p>Monthly expense amount? $100</p>
  
  <p>Do you have any other expenses? (Enter y for yes.)n</p>
  
  <p>You were $ 900.0  under budget.</p>
  
  <p>Press enter to exit.</p>