title: Answer Error, Only outputting Zero
body: <p>I am coding in python and I cannot seem to figure out why when the amount of tickets sold is entered it does not calculate the full price of the tickets that were sold. Any help is appreciated, Thanks.</p>
  
  <pre><code>aLimit=300
  bLimit=500
  cLimit=100
  aPrice=20
  bPrice=15
  cPrice=10
  ticketSold=1
  totalIncome=0
  
  def Main():
      getTickets(aLimit)
      sectionIncome=calcIncome(ticketSold,aPrice)
      sectionIncome+=totalIncome
      print("The theater generated this much money from section A "+
            str(sectionIncome))
  
      getTickets(bLimit)
      sectionIncome=calcIncome(ticketSold,bPrice)
      sectionIncome+=totalIncome
      print("The theater generated this much money from section B "+
            str(sectionIncome))
  
      getTickets(cLimit)
      sectionIncome=calcIncome(ticketSold,cPrice)
      sectionIncome+=totalIncome
      print("The theater generated this much money from section C "+
            str(sectionIncome))
      print("The Theater generated "+str(totalIncome)+" total in ticket sales.")
  
  def getTickets(limit):
      ticketSold=int(input("How many tickets were sold? "))
      if (ticketsValid(ticketSold,limit)==True):
          return ticketSold
      else:
          getTickets(limit)
  
  def ticketsValid(Sold,limit):
      while (Sold&gt;limit or Sold&lt;0):
          print("ERROR: There must be tickets less than "+
                str(limit)+" and more than 0")
          return False
      return True
  
  def calcIncome(ticketSold,price):
      return ticketSold*price
  
  Main()
  </code></pre>