Thanks Chris Angelico, i am new to python can you suggest me how to remove the error and solve it. so,how can i create an instance for "Node" in that function??,is, it not possible to create an instance in such a way?