How can I remove the quote marks and retrieve the list in python?

Viewed 93

I have a list as a string like this:

"['USA', 'Canada', 'Mexico', 'Brazil']"

I want to retrieve the list from the string, like this:

['USA', 'Canada', 'Mexico', 'Brazil']

How can I do that? Itertools or list function have not given me the proper result. Thanks

2 Answers
Related