title: Swapping elements in tuples - football calendar generator
body: <p>Here is my code:</p>
  <pre><code>        n = int(len(teams_names) / 2)
  
      rounds = []
      for i in range(len(teams_names) - 1):
          t = teams_names[:1] + teams_names[-i:] + teams_names[1:-i] if i else teams_names
          rounds.append(list(zip(t[:n], reversed(t[n:]))))
      one_round_length = len(rounds)
      list(rounds)
      for i in range(len(rounds)):
          one_round = rounds[one_round_length-i-1]
          for j in range(len(one_round)):
              one_round[j][0], one_round[j][1] = one_round[j][1], one_round[j][0] 
          rounds.append(one_round)
  </code></pre>
  <p>But I have TypeError: 'tuple' object does not support item assignment in the line:</p>
  <pre><code>            one_round[j][0], one_round[j][1] = one_round[j][1], one_round[j][0] 
  </code></pre>
  <p>The code is to create the football matches calendar. In the first ,,round&quot;, creates random pairs of the teams. And in the second &quot;round&quot; I want to reverse host-guest teams pairs.</p>
  <p>For example, without reverse I have:</p>
  <pre><code>[('Atletico Madrid', 'Sevilla FC'), ('Villareal CF', 'Athletic Club')]
  [('Atletico Madrid', 'Villareal CF'), ('Sevilla FC', 'Athletic Club')]
  [('Atletico Madrid', 'Athletic Club'), ('Sevilla FC', Villareal CF')]
  
  [('Atletico Madrid', 'Athletic Club'), ('Sevilla FC', Villareal CF')]
  [('Atletico Madrid', 'Villareal CF'), ('Sevilla FC', 'Athletic Club')]
  [('Atletico Madrid', 'Sevilla FC'), ('Villareal CF', 'Athletic Club')]
  </code></pre>
  <p>I want to have:</p>
  <pre><code>[('Atletico Madrid', 'Sevilla FC'), ('Villareal CF', 'Athletic Club')]
  [('Atletico Madrid', 'Villareal CF'), ('Sevilla FC', 'Athletic Club')]
  [('Atletico Madrid', 'Athletic Club'), ('Sevilla FC', Villareal CF')]
  
  [('Athletic Club', 'Atletico Madrid'), ('Villareal CF', Sevilla FC')]
  [('Villareal CF', 'Atletico Madrid'), ('Athletic Club', 'Sevilla FC')]
  [('Sevilla FC', 'Atletico Madrid'), ('Athletic Club', 'Sevilla FC')]
  </code></pre>