title: int object is not iterable when using dictionary
body: <p>I know this is a simple error but been looking at it all day! Where do I add float or int to prevent the following error message? int object is not utterable. </p>
  
  <p>How would I print it from highest to lowest score. Can I add reverse=True? I'm getting a tuple error. –</p>
  
  <pre><code>scores = {} #You'll need to use a dictionary to store your scores;
  
  with open("classscores1.txt") as f:
      for line in f:
          name, score = line.split() #store the name and score separately (with scores converted to an integer)
          score = int(score)
          if name not in scores or scores[name] &lt; score:
              scores[name] = score # replacing the score only if it is higher:
  
      for name in sorted(scores):
          print(name, "best score is", scores[name])
          print("{}'s best score is {}".format(name, max(scores[name])))
  </code></pre>