I have a file with a format similar to this:
a,3,4,2,1
3,2,1,a,2
I want to read the file and create an array of lists
in a way that:
array[0] = ['a','3','4','2','1']
array[1] = ['3','2','1','a','2']
How can I do that?
So far I am stuck with:
f = open('./urls-eu.csv', 'r')
for line in f:
arr = line.split(',')
print arr
But that is not what I am looking for, I really new to python.