I am using this code to extract the genres from list of dictionaries.
dict=[{'genres': ['Thriller'], 'year': '2014'}, {'genres': ['Animation','Drama'], 'year': '2014'}]
test=[i["genres"] for i in dict]
test
[['Thriller'], ['Animation', 'Drama']]
I want to remove the inner list and create single list.
Expected output:['Thriller', 'Animation', 'Drama']