variable a
contains a list of dictionaries but its type is of string.
a
output:"[{'id': 35, 'name': 'Comedy'}, {'id': 18, 'name': 'Drama'}, {'id': 10751, 'name': 'Family'}, {'id': 10749, 'name': 'Romance'}]"
a[0]
output:'['
I want to convert a
into a list so that I can access the dictionary using index