I have a list of dictionaries of which when i want to print the list index element of a key in the dictionary, the output is the index of the character and not the element.
reader = csv.DictReader(mycsvfile, fieldnames)
for row in reader:
print row
example output:
{'name':'tom','numbers':"['1','2','3']"} #row
print row['numbers']
['1',2','3'] #correct
print row['numbers'][0]
[ #wrong
How do i convert row['numbers'] to a list?