Suppose I have a dict with the contents as follows:
leaderboard = {"James": 4, "Tom": 2, "Tim": 8, "Jim": 2}
How would I go about getting a rank for each name, so that people with the same scores have the same rank?
Tim: 1
James: 2
Tom: 3
Jim: 3