Issue
I want to put the data extracted from a dictionary into another dictionary. I want tu put what I got from that loop into list_od_id = []
for item in album['tracks']['data']:
print(item['id'])
list_of_id = []
Solution
for item in album['tracks']['data']:
list_of_id.append(item['id'])
Answered By - Yuri Ginsburg
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.