title: Editing a csv file with python
body: <p>Ok so I'm looking to create a program that will interact with an excel spreadsheet. The idea that seemed to work the most is converting it to a csv file. I've managed to make a program that prints the data but I want it to edit it and thus change the results in the csv file itself.</p>
  
  <p>Sorry if it's a bit confusing as my programming skills aren't great.</p>
  
  <p>Heres the code: </p>
  
  <pre><code>import csv
  with open('wert.csv') as csvfile:
    freq=csv.reader(csvfile, delimiter=',')
    for row in freq:
      print(row[0],row[1],row[2])
  </code></pre>
  
  <p>If anyone has a better idea on how to make this program work then it would be greatly appreciated.</p>
  
  <p>Thanks</p>