import csv
with open('records.csv', 'r') as f:
file = csv.reader(f)
my_list = list(file)
print(my_list)
import csv
with open("out.csv", "w", newline="") as f:
writer = csv.writer(f)
writer.writerows(a)
import csv
mycsv = list(csv.reader(datafile, delimiter=","))
open('file.csv', 'r').read().splitlines() #assuming you want each row to be an individual element in the list