title: How to append data to each row of csv file without overwriting old content?
body: <p>I have a .csv file whose each row contains comma separated elements:</p>
  
  <pre><code>abc,233,345,400
  </code></pre>
  
  <p>I want to append new data to each row of the csv file, but that instead of comma separated, the appended columns should be space separated after the first appended element.</p>
  
  <p>For instance, if I am to append the list [12, 13, 14] to the above row, then it should look like:</p>
  
  <pre><code>abc,233,345,400,12 13 14
  </code></pre>
  
  <p>However, I am stuck at the following:</p>
  
  <pre><code>with open(csv_dir, 'r+', encoding='utf-8') as f:
      reader = csv.reader(f, delimiter=',')
      list = [12,13,14]
      for i in reader:
          i += list
  </code></pre>
  
  <p>Now, if I append the list to the row and then write it back to the file, the whole row would be over-written as comma separated. Is there any way out?</p>