traverse first to last node
else : NEW_LINE INDENT while True : NEW_LINE INDENT print ( current . data , end = ' ▁ ' ) ; NEW_LINE current = current . next ; NEW_LINE if ( current == head ) : NEW_LINE INDENT break NEW_LINE DEDENT DEDENT DEDENT print ( ) NEW_LINE