I have a delimited String as follows,
list1 = ['[107 207]', '[110 245]', '[115 282]', '[120 320]']
How can I convert this back to list in Python? The converted list should look like this:
[[107 207]
[110 245]
[115 282]
[120 320]]
I have tried list1 = list1.split(","). But, when I print list[0] I'm getting this,
['[107 207]'
instead of getting this,
[107 207]
Also, trying list1 = [int(e) for e in list1.split(',')] gave me an error as follows:
"invalid literal for int() with base 10: \"['[107 207]'\""