title: Update list of values in a dictionary (cumulative update)
body: <p>Context: I have a dictionary with some soccer results and I'd like to create a second dictionary displaying the values as a list with the soccer match results.</p>
  <p>For example, I have this initial dictionary:</p>
  <pre><code>dict_results = {('FCP', 'SLB'): (1, 4),
   ('FCP', 'SCP'): (2, 5),
   ('SLB', 'FCP'): (2, 6),
   ('SLB', 'SCP'): (1, 5),
   ('SCP', 'FCP'): (2, 4),
   ('SCP', 'SLB'): (1, 4)}
  </code></pre>
  <p>and I'd like to get this format:</p>
  <pre><code>tabela = {'FCP': [win, draw, loss, scored_goals, suff_goals, points],
   'SLB': [win, draw, loss, scored_goals, suff_goals, points],
   'SCP': [win, draw, loss, scored_goals, suff_goals, points]}
  </code></pre>
  <p>I was trying to do something like this:</p>
  <pre><code>tabela = {}
  
  for teams,goals in dict_results.items():
      win = 0
      draw = 0
      loss = 0
      scored_goals = 0
      suff_goals = 0
      points = 0
  
      print(teams,goals)
      if teams[0] not in tabela:
          tabela[teams[0]] = [win, draw, loss, scored_goals, suff_goals, points]
      
  
      if goals[0] &gt; goals[1]:
          #teams[0] update
          win = 1
          scored_goals = goals[0]
          suff_goals = goals[1]
          points = 3
          tabela[teams[0]].update([win,draw,loss,scored_goals,suff_goals,points])
      elif goals[0] == goals[1]:
          draw = 1
          scored_goals = goals[0]
          suff_goals = goals[1]
          points = 1
          tabela[teams[0]].update([win,draw,loss,scored_goals,suff_goals,points])
          tabela[teams[1]].update([win,draw,loss,scored_goals,suff_goals,points])
      elif goals[0] &lt; goals[1]:
          ...
  </code></pre>
  <p>but the values are kept at 0 (they don't actually update) which makes sense really since every iteration I'm basically &quot;resetting&quot; the values and even if the values were being updated the way I'm trying to do, I wouldn't really get cumulative values.</p>
  <p>How could I do it so that I can compare the goals for each team and update the results accordingly? For example, in the tuple ('FCP','SLB') the goals scored for 'FCP' were 1 and goals scored for SLB were 4, which means that 'FCP' suffered 4 goals, scored 1 goal, got no points, increased the loss by 1 and 'SLB' increase the win by 1, suffered 1 goal, scored 4 goals and got 3 points (without using dictionary or list comprehensions)</p>
  <p>Thank you in advance!</p>