Answers for "how to create a tuple from csv python"

0

how to create a tuple from csv python

import csv

with open('file.csv', newline='') as f:
    reader = csv.reader(f)
    data = [tuple(row) for row in reader]

print(data)
Posted by: Guest on May-26-2021

Code answers related to "how to create a tuple from csv python"

Python Answers by Framework

Browse Popular Code Answers by Language