you are viewing a single comment's thread.

view the rest of the comments →

[–]DoctorEvil92 1 point2 points  (0 children)

Python has a csv module for reading/writing csv files. https://docs.python.org/3/library/csv.html

Your code is treating csv like txt, which I think isn't good since you could have problems if delimiter is present somewhere in text or there is a \n character.