title: Create list of x,y,z coordinates using loop in Python
body: <p>I would like to create 3-dimensional array including coordinates of the points in cartesian axis system.
  My user input is the following:</p>
  <pre><code>import pandas as pd
  import numpy as np
  
  rows = int(input(&quot;Please Enter the Total Number of Rows  : &quot;))
  columns = int(input(&quot;Please Enter the Total Number of Columns  : &quot;))
  levels = int(input(&quot;Please Enter the Total Number of Levels  : &quot;))
  
  dx = int(input(&quot;Please Enter the Pitch in x Direction  : &quot;))
  dy = int(input(&quot;Please Enter the Pitch in y Direction  : &quot;))
  dz = int(input(&quot;Please Enter the Pitch in z Direction  : &quot;))
  
  x0 = int(input(&quot;Please Enter the Origin Coordinate in x Direction  : &quot;))
  y0 = int(input(&quot;Please Enter the Origin Coordinate in y Direction  : &quot;))
  z0 = int(input(&quot;Please Enter the Origin Coordinate in z Direction  : &quot;))
  </code></pre>
  <p>I want to start at point with coordinates [x0,y0,z0] and then create the 3D array based on the inserted number of rows,columns, levels (3rd dimension) and spacing between the points (dx,dy,dz)</p>
  <p>I am think about the loop</p>
  <pre><code>Data=np.zeros(('rows','columns','levels'))
  for i in range(rows):
      for j in range(columns):
          for k in range(levels):
  </code></pre>
  <p>but no idea how to write this code. Can anyone help? Output should be in form of 3D Array.</p>
  <p>Many Thanks
  Lukas</p>