How to convert string into list? [duplicate]

Well, I am using python. And I have case here.

from my api. The following key and value is coming.

games : ["['football','cricket']"]

Now i want to get that football and cricket from coming games value and store in python list.

expected output:

print(games) ==> ["football","circket"]
print(type(games))  ==> <class list>
Back to Top