class Tree def __init__ self condition lambda childs self condition co

1
2
3
4
5
6
7
class Tree:
def __init__(self, condition=lambda: 0, childs={}):
self.condition = condition
self.childs = childs
def __str__(self):
return str(self.condition)