title: Printing each item of a variable on a separate line in Python
body: <p>I am trying to print a list in Python that contains digits and when it prints the items in the list all print on the same line.</p>
  
  <pre><code>print ("{} ".format(ports))
  </code></pre>
  
  <p>here is my output</p>
  
  <pre><code>[60, 89, 200]
  </code></pre>
  
  <p>how can I see the result in this form:</p>
  
  <pre><code>60
  89
  200
  </code></pre>
  
  <p>I have tried <code>print ("\n".join(ports))</code> but that does not work.</p>