Skip to content

Instantly share code, notes, and snippets.

@ryanneufeld
Created March 31, 2015 20:19
Show Gist options
  • Save ryanneufeld/25ddccfe50ecd29a2567 to your computer and use it in GitHub Desktop.
Save ryanneufeld/25ddccfe50ecd29a2567 to your computer and use it in GitHub Desktop.
longestkey = 1
for key in somedict:
if len(key) > longestkey:
longestkey = len(key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment