title: Speeding Ticket Fine Calulation
body: <p>This program calculates the speeding ticket costs</p>
  
  <p>The policy is that every ticket is $50 plus $5 for each mph over the limit, plus a penalty of $200 for any speed over 90 mph. However, if a speed is not 5 mph over the speed limit, that ticket can be waived. (e.g. if a speed limit is 37, you may drive at 41 but not at 42.) The  program asks the user how many tickets they have, and for each ticket asks for the speed limit &amp; clocked speed. I want to calculate and print the fine for each ticket and return the sum total of all the fines and Report a fine of $0 for a ticket if the clocked speed was not over the limit or if the ticket can be waived.</p>
  
  <p>This is my code which works fine for single ticket i want help for doing this for many tickets i am new to python.</p>
  
  <pre><code>def ask_limit():
      limit = float(input ("What was the speed limit? "))
  
      return limit
  def ask_speed():
      speed = float(input ("What was your clocked speed? "))
      return speed
  def findfine(speed, limit):
      if speed &gt; 90:
          bigfine = ((speed - limit) * 5 + 250)
          print "your fine is", bigfine
      elif speed &lt;= limit:
          print "you were traveling a legal speed"
      else:
          fine = ((speed - limit) * 5 + 50)
          print "your fine is", fine
  
  def main():
      limit = ask_limit()
      speed = ask_speed()
      findfine(speed, limit)
  main()
  </code></pre>