title: Python making scoreboard based on list input
body: <p>I am trying to make a scoreboard based on an input which has a list of all rounds played and their result. I have already split this input so that each round of games is one list; in it, one item is one game played. Each game is noted as 'White Black ResultWhite ResultBlack'.</p>
  <p>For example, with three rounds and six players, it is as follows. The first list is the players, followed by the rounds (2-4). 1 = win, 0.5 = tie, 0 = loss.</p>
  <pre><code>[['Erik', 'Daniel', 'Charlotte', 'Anna', 'Bob', 'Femke'], ['Anna Femke 1 0', 'Bob Erik 0 1', 'Charlotte Daniel 0.5 0.5'], ['Erik Anna 1 0', 'Femke Charlotte 0.5 0.5', 'Daniel Bob 1 0'], ['Daniel Erik 0.5 0.5', 'Charlotte Anna 1 0', 'Bob Femke 1 0']]
  </code></pre>
  <p>Now, I want to:</p>
  <ul>
  <li>Identify the first list as <em>names</em> in a class called player_result</li>
  <li>Ignore the first list of <em>names</em> from this point onwards</li>
  <li>Split the list of all rounds into individual lists</li>
  <li>Add ResultWhite (index 2) to the <em>points</em> in said class of White (index 0) and vice verse for ResultBlack and Black</li>
  </ul>
  <p>I have managed to reach the first three points with the code below, but I cannot resolve the last remark. I have looked into append but I cannot figure it out. If anyone can help it would be great!</p>
  <pre><code>class player_result:
      def __init__(self, name: str):
          self.name = name
  
  def determine_output(input):
      splits = input.split(&quot;\n\n&quot;)
      rounds = [i.split('\n') for i in splits]
      print(rounds)
      playernames = rounds[0]
      players = []
      for name in playernames:
          players.append(player_result(name))
      print('Player:', players[0].name)
      amount_rounds = len(rounds) - 1
      print('Rounds:', amount_rounds)
      for i in range(len(rounds) - 1):
          print('Round',i + 1,rounds[i + 1])
  </code></pre>
  <p>Edit: some more clarification on the end result. My idea is that the list is being registered as [White Black ResultWhite ResultBlack], and the output below is being presented by all White and Black being player, with the total of their points received. The output / result that I am after would look like the following. This would be achieved by the name being the <em>names</em> item of class player_result, and the score being a new <em>points</em> item of class player_result.</p>
  <pre><code>Erik: 2.5
  Daniel: 2
  Charlotte: 2
  Anna: 1
  Bob: 1
  Femke: 0.5
  </code></pre>