From what I understand, you can sort a dictionary by items, keys, and values which will then show the respected part in a sorted list
sorted( d.items...) shows the entire entry, keys to keys, and values to values.
How would I go about showing only the values in a dictionary based on the key being sorted?
I've tried sorted(d.values(), key = (lambda x:...) - but I'm not sure if I'm going about this the right way
d = { 2: (4,6) , 5: (3,2), 3: (5,9) } would be an example of a dictionary and I want it to display
{ (4,6), (5,9), (3,2) } - ordered based on key but only show values.
I'm trying to only use the sorted function and not import anything else