If we found leaves in both trees
if ( temp1 != None and temp2 != None ) : NEW_LINE INDENT if ( temp1 . data != temp2 . data ) : NEW_LINE INDENT print ( " First ▁ non ▁ matching ▁ leaves ▁ : " , temp1 . data , " " , temp2 . data ) NEW_LINE return NEW_LINE DEDENT DEDENT