So I have this text file
(1, 15), 'indice3 = [4, 5, 6]'
(7, 1), "indice1 = {3: 'A B C'}"
(11, 7), "indice4 = '(1, 2)'"
(11, 17), 'typage = mode de déclaration des types de variable'
(23, 5), "indice5 = '(3, 4)'"
(25, 1), '27 * 37 = 999'
As you can see, there's at first coordinates and then a text.
Here's an example of what it would look like at the end (for the first two elements)
{
(1,15): "indice3 = [4, 5, 6]",
(7, 1): "indice1 = {3: 'A B C'}"
}
I know that I should start by reading the file (f = open("dico_objets.txt", "r")
) and then read it line by line but I don't know how to split it correctly.