There are some ways to that.
Using csv module:
https://blog.udemy.com/python-examples/
https://blog.udemy.com/python-csv/
Using pandas library:
http://pandas.pydata.org/pandas-docs/stable/indexing.html
Using numpy library:
https://www.getdatajoy.com/examples/python-data-analysis/read---write-csv-file-with-numpy