As said in the title of the thread.
Also I tried using eval()
for these lists I'll be inputting, but these lists contain string elements and other (sub-?) lists, e.g:
[Pacific, [-45,30,25], [120,59, 15]]
When providing such input eval()
responds perfectly fine for numbers-only lists but when applied to strings sends back a NameError
for these string elements saying they are not defined.