I have a file that contains a list of numbers in a format exactly how Python would print it. It is a complex list and in the file it looks like this:
([(515.51, 615.76), (42.28, 152.3), (223.29, 138.07)], 1)
([(382.27, 502.27), (323.54, 473.01), (212.32, 433.57)], 2)
([(188.74, 442.8), (245.7, 461.47), (391.02, 508.96)], 3)
I would like to know how to get it from the file and generate exactly the same list as numbers in Python.