Skip to main content

Snippets

# Sorting a dictionary based on values
new = sorted(hashmap, key=hashmap.get, reverse=True)