I have a text file which looks something like this:
["someString",1234,True],["anotherString",5678,False]
I am trying to convert the content of the file to a list, like this:
[["someString",1234,True],["anotherString",5678,False]]
So I tried to do this with the following lines:
test = open('file.txt','r')
test = test.read()
But this converts it to a string, like this:
'["someString",1234,True],["anotherString",5678,False]'
How can I convert this to a list?