Answers for "csv file into a list python"

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 "csv file into a list python"

Python Answers by Framework

Browse Popular Code Answers by Language