Push right and left children of the popped node to stack
if node . right is not None : NEW_LINE INDENT nodeStack . append ( node . right ) NEW_LINE DEDENT if node . left is not None : NEW_LINE INDENT nodeStack . append ( node . left ) NEW_LINE DEDENT