I have a dictionary with integer values as keys and the values have either one or multiple values as list.
100 ['Roopa Valipe ']
99 ['John Smith', 'Souju Goud']
98 ['Hemanth Hegde']
I have to assign values and print the output as follows:
PERSON SCORE POSITION
Roopa Valipe 100 1
John Smith 99 2
Souju Goud 99 2
Hemanth Hegde 98 4
Any guidance on this is very helpful.
Update: I have now reversed the values into keys and vice versa. I can read one single key value. But if I have multiple keys mapping into a single 'value', I am not quite sure how to proceed from here.
['Hemanth Hegde'] 98
['John Smith', 'Souju Goud'] 99
['Roopa Valipe '] 100
This is what I have now.