I am quite new to python. For an exercise i am reading in data from a csv file and storing it in a list. Having trouble then accessing elements in the list and storing them as variables thereafter.
The data contained in the file will be an ID, followed by two sets of coordinates
ID, x1, y1, x2, y2
You should use the
with open('/path/to/file.csv', 'r') as f: reader = csv.reader(f) for row in reader: ID, x1, y1, x2, y2 = row