I have the following dictionary:
{'key1': [value1], 'key2': [value2], 'key3': [value3], 'key4': [value4] }
what I want to do is to use the values to create a new dictionary. The value of the odd elements will be the new keys, and the value of the next element will be the new value of that key. I mean:
{'value1': [value2], 'value3': [value4]}
how can i do it? i would like to clarify that this is a small example, since dictionaries have hundreds of elements, therefore the solution should be scalable to dictionaries with any amount of elements.