Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created June 28, 2020 17:59
Show Gist options
  • Save aniruddha27/4f1017dc71cfa92e0c89195c33b1c896 to your computer and use it in GitHub Desktop.
Save aniruddha27/4f1017dc71cfa92e0c89195c33b1c896 to your computer and use it in GitHub Desktop.
sort = sorted(prep_dict.items(), key = lambda d:(d[1],d[0]), reverse=True)
sort[:10]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment