Answers for "python store csv file in list"

2

converting a csv into python list

import csv
with open('records.csv', 'r') as f:
  file = csv.reader(f)
  my_list = list(file)
print(my_list)
Posted by: Guest on July-12-2021

Code answers related to "python store csv file in list"

Python Answers by Framework

Browse Popular Code Answers by Language