ranking = {
    'A': 100,
    'B': 85,
    'C': 95
}

print(sorted(ranking))
"""
['A', 'B', 'C']
"""

print(sorted(ranking, key=ranking.get))
"""
['B', 'C', 'A']
"""

print(sorted(ranking, key=ranking.get, reverse=True))
"""
['A', 'C', 'B']
"""

85a03fd3a65eac2c43583662dd20e973d29a428e
<mask token>

<mask token>
print(sorted(ranking))
<mask token>
print(sorted(ranking, key=ranking.get))
<mask token>
print(sorted(ranking, key=ranking.get, reverse=True))
<mask token>

ranking = {'A': 100, 'B': 85, 'C': 95}
print(sorted(ranking))
<mask token>
print(sorted(ranking, key=ranking.get))
<mask token>
print(sorted(ranking, key=ranking.get, reverse=True))
<mask token>

ranking = {
    'A': 100,
    'B': 85,
    'C': 95
}

print(sorted(ranking))
"""
['A', 'B', 'C']
"""

print(sorted(ranking, key=ranking.get))
"""
['B', 'C', 'A']
"""

print(sorted(ranking, key=ranking.get, reverse=True))
"""
['A', 'C', 'B']
"""
