printing the node
if temp . next : NEW_LINE INDENT print ( temp . next . data , end = " ▁ " ) NEW_LINE temp = temp . next NEW_LINE DEDENT if temp . prev : NEW_LINE INDENT print ( temp . prev . data , end = " ▁ " ) NEW_LINE temp = temp . prev NEW_LINE DEDENT if temp . bottom : NEW_LINE INDENT print ( temp . bottom . data , end = " ▁ " ) NEW_LINE temp = temp . bottom NEW_LINE DEDENT if temp . top : NEW_LINE INDENT print ( temp . top . data , end = " ▁ " ) NEW_LINE temp = temp . top NEW_LINE DEDENT