title: How to append pipe delimiter in string array in python
body: <p>I've array of string in python, I'm iterating over the loop each value and trying to append ('|') symbol using below code. But its not appending as expected</p>
  
  <pre><code>result_list = []
  new_value = 'iek,33833,,sdfd,lope'
  my_list = ['abc,1234,,ickd,sold', 'yeje,38393,,dkdi,eole', 'euei,38393,,idkd,dikd']
  
  for val in my_list:
    result_list.append(val + '|')
  
  res = result_list.append(new_value) + '|')
  print res
  </code></pre>
  
  <p>I'm trying to print the list of string including new string at last. But its giving me below error:</p>
  
  <p><strong>TypeError: can only concatenate list (not "str") to list</strong></p>
  
  <p>Sample output: </p>
  
  <pre><code>abc,1234,,ickd,sold|yeje,38393,,dkdi,eole|euei,38393,,idkd,dikd|iek,33833,,sdfd,lope|
  </code></pre>
  
  <p>Thanks a lot for your help!</p>