title: How is a linked list supposed to look when it is printed?
body: <p>I decided to create a linked list using Python. I have all of my functions (insert, search, remove etc.) and classes (LinkedList and Node class). I just don't know how to create the __ str __ method (the string representation) of a node and of a linked list.</p>
  
  <p>I can't find an article which describes how a linked list is supposed to be printed (all the articles I found explain what they are, and what functions they normally have). With that said, does it matter if, when my linked list is printed, looks like this:</p>
  
  <pre><code>1, 2, "a", "d", True
  </code></pre>
  
  <p>or like this:</p>
  
  <pre><code>1 -&gt; 2 -&gt; "a" -&gt; "d" -&gt; True
  </code></pre>
  
  <p>or like this:</p>
  
  <pre><code>[1, 2, "a", "d", True]
  </code></pre>
  
  <p>? Is there a particular way which data structures have to be printed?</p>