I tried converting an array that is in a string string = "[[(34, 66, 75), (3, 145, 74)], [(5, 78, 33), (7, 44, 6)]]"
to a working array [[(34, 66, 75), (3, 145, 74)], [(5, 78, 33), (7, 44, 6)]]
in python but I failed. I tried so much but I couldn't think of another solution.
string = "[[(34, 66, 75), (3, 145, 74)], [(5, 78, 33), (7, 44, 6)]]"
arr = r"%s" %string
print(arr[1][0])
# output: (5, 78, 33)
I was hoping that if I manage to make the string raw I will be able to use the array in it.