Right child code ( Similar to left child code )
if ( n1 . right and n2 . right ) : NEW_LINE INDENT q1 . put ( n1 . right ) NEW_LINE q2 . put ( n2 . right ) NEW_LINE DEDENT elif ( n1 . right or n2 . right ) : NEW_LINE INDENT return False NEW_LINE DEDENT return True NEW_LINE