Re: [Tutor] double nodes being enter into tree structure

2019-06-28 Thread Mats Wichmann
On 6/28/19 12:10 AM, mhysnm1...@gmail.com wrote: > class Node(object): > > # I am not 100% sure the purpose of (object) does. as to this bit: having your class inherit from object means it's a "new-style class". That's only significant if you're writing code that is expected to run under Pytho

Re: [Tutor] double nodes being enter into tree structure

2019-06-28 Thread Alan Gauld via Tutor
On 28/06/2019 07:10, mhysnm1...@gmail.com wrote: > > Anyway, my issue is I am getting the same node being added to the parent node > of my tree below. I'm not sure about that part but > def addNode(words, tree): > if words: > wordExists = False > for child in tree.child