title: Equivalent C++ nested print in python
body: <p>I'm trying to run this C++ statement in python and I'm having trouble placing the print in the loop.</p>
  
  <pre><code>for (int i = 0; i &lt; 3; i++)
  {
      for (int j = 0; j &lt; 3; j++)
      {
          for (int k = 0; k &lt; 3; k++)
          {
            cout&lt;&lt;_3x3x3[i][j][k]&lt;&lt;" ";
          }
      }
       //print here in python
       cout&lt;&lt;endl;
  }
  </code></pre>
  
  <p>in python:</p>
  
  <pre><code>_3x3x3 = [[[0 for col in range(3)] for row in range(3)] for depth in range(3)]
  
  for i in range(3):
      for j in range(3):
          for k in range(3):
              _3x3x3[i][j][k] = 1
  
  for col in _3x3x3:
      print col
  print
  for row in _3x3x3:
      print row
  print
  for depth in _3x3x3:
      print depth
  #I want to print this in the C++ style above
  for i in range(3):
      for j in range(3):
          for k in range(3):
              print _3x3x3[i][j][k]
  </code></pre>