(May-10-2021, 02:41 PM)deanhystad Wrote: When you call GeneralTreeNode(value='a1') this creates a new GeneralTreeNode object and calls GeneralTreeNode.__init__(value='a1'). 'value' does not appear in the __init__ arguments.Tell me the exact problem and solution I don't know even this case how to do there are different value for general tree where a1 represent root
def __init__(self,root=None):
you mean pass value in the argument def __init(self,root,value,etc)