I am new to programming so please excuse my shallow knowledge with coding. I have a .csv file that I can open with excel. Each row represents a person\'s name and their details
With the csv module it is quite simple:
import csv with open('friends.csv', 'Ur') as f: data = list(tuple(rec) for rec in csv.reader(f, delimiter=','))
data is a list of tuples.
data
The csv module reads the files correctly:
csv
"Smith, John",123
will be read as
('Smith, John', '123')