title: Python calculating letter grades
body: <p>I'm having trouble getting the letter grade to output anything but F for any value of input that is put into the scores. Can anyone figure out what the problem is. It could be something in my if statement isn't correct but I am not sure if that is true.</p>
  
  <pre><code>score1=float(input("Enter score 1: "))
  score2=float(input("Enter score 2: "))
  score3=float(input("Enter score 3: "))
  score4=float(input("Enter score 4: "))
  score5=float(input("Enter score 5: "))
  scores=[score1, score2, score3, score4, score5]
  
  def determine_grade(scores):
  
      if score &gt;=90:
          return 'A'
      elif score &gt;=80:
          return 'B'
      elif score &gt;=70:
          return "C"
      elif score &gt;=60:
          return "D"
      elif score &lt;60:
          return "F"
  
  determine_grade(scores)
  
  print("scores \t numeric grade \t letter grade") 
  print("-------------------------------------------------------------") 
  print("Score 1: ","\t", score1,"\t", determine_grade(score1))
  print("Score 2: ","\t", score2,"\t", determine_grade(score2))
  print("Score 3: ","\t", score3,"\t", determine_grade(score3))
  print("Score 4: ","\t", score4,"\t", determine_grade(score4))
  print("Score 5: ","\t", score5,"\t", determine_grade(score5))
  print("-------------------------------------------------------------")
  calc_average= sum(scores)/len(scores)
  print("Average Score: {0:.2f}".format(calc_average))
  </code></pre>