For null root
if ( node == None ) : NEW_LINE INDENT return NEW_LINE DEDENT if ( node . left == None and node . right == None ) : NEW_LINE INDENT print ( node . data , end = " ▁ " ) NEW_LINE return NEW_LINE DEDENT