I have a test file that I would like to load the create a list of tuples using the data on the file. The data on the file is as follows> how would I successfully load the fi
A very straightforward way would be to use the csv module. E.g.:
csv
import csv filename = "input.csv" with open(filename, 'r') as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: print(row)