Read Data from CSV File using Python

csv module

import csv

with open('test.csv', mode='r') as file:
    csvReader = csv.reader(file)
    data = list(csvReader)

print(data)

Leave a Comment

Cancel reply

Your email address will not be published.