how to extract value of a dictionary that is inside a list

Viewed 28

how will you extract the value of a authorNanme from a given distionary?

{'Auther_name': [{'authorCleanUrl': 'jeffrey-brown',
                  'authorName': 'Jeffrey Brown',
                  'authorSalesRank': 13828,
                  'idAuthor': 232349}]

i tried severel ways but failed ..

1 Answers
data = {'Auther_name': [{'authorCleanUrl': 'jeffrey-brown',
              'authorName': 'Jeffrey Brown',
              'authorSalesRank': 13828,
              'idAuthor': 232349}]}
print(data['Auther_name'][0]['authorName'])

Try this one

Related