Last active
April 9, 2018 15:57
-
-
Save Mazuh/08a32b4b088c40fe1d5f43114f28ad34 to your computer and use it in GitHub Desktop.
Python keywords sorted descendingly by their length, as JSON-like
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keyword | |
', '.join(['"%s"' % kw for kw in sorted(keyword.kwlist, key=len, reverse=True)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment