I am trying to parse a textfile where a matrix is saved in the string format: "[[0,1],[1,0]]"
To goal is to parse the .txt file and turn it into an actual matrix represented by an arrays of arrays stored in some variable. I am new to python and programming in general and can't think of an nice way to do this.
I only need help with how to construct the python matrix from what we get in the .txt file.