title: How to change a specific value in an ordered dictionary in python
body: <p>I'm struggling to figure out how to accomplish what I've outlined below.</p>
  
  <p>I'm using an ordered dictionary to keep track of scores (values) for each player (keys).  The <code>for</code> loop repeats as many times as there are players.</p>
  
  <p>My thought was to update the value of the key that is the same index as <code>x</code> in the for loop, but I can't seem to figure out how to execute it. Any suggestions are appreciated, it's entirely possible I'm approaching this the wrong way.  </p>
  
  <p>This is what I have so far : </p>
  
  <pre><code>numberOfPlayers = input("\nEnter number of players : ")
  print("The number of players has been set to %s \n" % 
  (numberOfPlayers))
  numberOfPlayersInt = int(numberOfPlayers)
  players = collections.OrderedDict()
  
  for index in range(numberOfPlayersInt):
      teamName = input('Team/Player %i, enter a team name :' %(index))
      players[teamName] = 0
  
      for x in range(numberOfPlayersInt):
          print("Player %d, your question :" % (x + 1)) 
          answer = str(input("\nCorrect ? "))
          if answer.lower() in ['y', 'yes']:
              pass
              #some code here that updates the value for this player.
  </code></pre>
  
  <p>A dictionary with 3 entries, a - c, looks like this :</p>
  
  <pre><code>OrderedDict([('a', 0), ('b', 0), ('c', 0)])
  </code></pre>