title: TypeError: can only concatenate list (not "str") to list - python
body: <p>I have some code like this:    </p>
  
  <pre><code>for x in self.fiturs:
      a = x[:1] + x[-5]
      uji.append(a)
  </code></pre>
  
  <p>and the data is:</p>
  
  <pre><code>A,1,7,8,7,9
  B,1,1,1,2,3
  C,2,34,5,1,2
  </code></pre>
  
  <p>I just want to get <code>index 0</code> and <code>index 3</code>. So the output I want is like this:</p>
  
  <pre><code>A,8
  B,1
  C,5
  </code></pre>
  
  <p>How can I do that?</p>