You are viewing a single comment's thread. Return to all comments →
It doesnt work in that way with python 2.
print root.data
prints with a new line at the end. You can import print function from future and use the 'end' parameter as Yannick commented
Tree: Preorder Traversal
You are viewing a single comment's thread. Return to all comments →
It doesnt work in that way with python 2.
prints with a new line at the end. You can import print function from future and use the 'end' parameter as Yannick commented