Created
June 1, 2017 15:23
-
-
Save AndreLouisCaron/e65339702ecf16b100ba8c45808018a6 to your computer and use it in GitHub Desktop.
Python dicttree: cutest recursion I've ever seen
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
from collections import defaultdict | |
def dicttree(): | |
return defaultdict(dicttree) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment