To practice python, I made a simple class for a tree structure in which each node can have infinite child nodes.
class Tree(): def __init__(self, children
In Python 2 print is a keyword, so you can't use it as the name of a function or method.
print