title: Program not working - python
body: <p>This program does not work and sends an error on line 6 and 8.Ty for any help</p>
  
  <blockquote>
    <p>line 6 IndexError: list index out of range line 8, in 
        print(plane_ride_cost("Tampa"))</p>
  </blockquote>
  
  <pre><code>list=["Charlotte","Tampa","Pittsburgh","Los Angeles"]
  list2=[(20,11,23,56)]
  def plane_ride_cost(city):
          for i in range (4):
              if city == list[i]:
                  return list2[i]
  
  print(plane_ride_cost("Tampa"))
  </code></pre>