I have a string like
str_sample = \"[[1, 2], [2.0, 0.3], [\'a\', \'b\', [None, (1, 3)], {\'c\': \'d\'}]]\"
I am currently using:
Use eval, but this is not a good practice
eval("[[1, 2], [2.0, 0.3], ['a', 'b']]") [[1, 2], [2.0, 0.3], ['a', 'b']]