====== Tree Datatype ======= * https://towardsdatascience.com/five-advanced-python-features-169c96682350 class Tree(dict): def __missing__(self, key): value = self[key] = type(self)() return value tree = Tree() tree['s1']['s2']['s3'] = '1' print(tree) {{tag>tree python dictionary dict}}