I have a dict that looks like this:
{1: [1, 2, 3], 2: [4, 5, 6]}
The dictionary can have n keys and the list n values. The lists have always the same length.
I would like to compare each value of all keys with the other values.
For example I want to compare the first value of all keys here 1 and 4. 1 is smaller so the first element in my new list should be 1(the key). Then compare 2 and 5 -> 2 is smaller so add another 1. This should be done for all elements.
the list for this example should be [1,1,1]