Compute the " height " of a tree -- the number of nodes along the longest path from the root node down to the farthest leaf node .
def height ( node ) : NEW_LINE INDENT if node is None : NEW_LINE INDENT return 0 NEW_LINE DEDENT else : NEW_LINE DEDENT