Autovivification - Python

Python

Python's collections module contains a defaultdict. These can be used to implement autovivificious dictionaries.

from collections import defaultdict def tree: return defaultdict(tree) lupin = tree lupin = "stand and deliver"

Read more about this topic:  Autovivification