I am trying to get a 3d list of RGB values located as text in a file and convert it to a normal list that I can use in Python.
The list on the file looks like this [[[1,0,0],[2,1,0]],[[0,1,0.5],[2,3,1.8]]]
.
What should I do to retrieve this list as as is, in order to use it in my code?
I tried to use functions such as split(), but I still cannot get the original list on the file because of the brackets.