I'm trying to read a nested list from file but with no success.
The list looks like this:
[14,[["sss","aaa"],"21a"],[[[2,3],"eee"],2423]]
When I read it from file I know that I need to split it, but am not sure which delimiter to use.
If I debug it for list from file and same list which is being assigned to during the compile time:
with open('data.txt', 'r') as f:
list_file = f.read().split(",[")
list_original = [14,[["sss","aaa"],"21a"],[[[2,3],"eee"],2423]]
I'm getting the following results (debug):