title: Print list of lists in separate lines
body: <p>I have a list of lists: </p>
  
  <pre><code>a = [[1, 3, 4], [2, 5, 7]]
  </code></pre>
  
  <p>I want the output in the following format:</p>
  
  <pre><code>1 3 4
  2 5 7
  </code></pre>
  
  <p>I have tried it the following way , but the outputs are not in the desired way:</p>
  
  <pre><code>for i in a:
      for j in i:
          print(j, sep=' ')
  </code></pre>
  
  <p>Outputs: </p>
  
  <pre><code>1
  3
  4
  2
  5
  7
  </code></pre>
  
  <p>While changing the print call to use <code>end</code> instead:</p>
  
  <pre><code>for i in a:
      for j in i:
          print(j, end = ' ')
  </code></pre>
  
  <p>Outputs:</p>
  
  <pre><code>1 3 4 2 5 7
  </code></pre>
  
  <p>Any ideas?</p>