I have small nested list like this ["['95', '66', '137', '70', '20']"]. I want to remove " for my nested list. How to do this?
import ast
mystr = ["['95', '66', '137', '70', '20']"]
print(ast.literal_eval(mystr[0]))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With