Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active May 22, 2020 17:07
Show Gist options
  • Save aravindpai/ace49d970ead6a1393eda40f4f65234a to your computer and use it in GitHub Desktop.
Save aravindpai/ace49d970ead6a1393eda40f4f65234a to your computer and use it in GitHub Desktop.
#compute the best pair
best = max(pairs, key=pairs.get)
print("Most Frequent pair:",best)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment