I have a dictionary dico like this :
id_OS (keys) : List of pages(values)
0 : [A, B]
1 : [C, D, E]
2 : [F, B]
3 : [G, A, B]
I would like to change it to this form
id_OS : List of index id_pages
0 : [0, 1]
1 : [2, 3, 4]
2 : [5, 1]
3 : [6, 0, 1]
I try this code, but i didnt got the correct index of values :
dico = dict(zip(range(len(dico)), zip(range(len(dico.values())))))
Any idea please to do it
Thanks