I recently found interesting behavior in python due to an error in my code. Here is a simplified version of what happened:
a=[[1,2],[2,3],[3,4]]
print(str(a))
console:
"[[1,2],[2,3],[3,4]]"
Now I was thinking, can I convert String back to Array.Is there a good way to convert String representing an array with mixed data types ( "[1,'Hello',['test','3'],True,2.532]"), including integers, strings, booleans, float and arrays back to array?
source
share