title: Creating an array matrix in python
body: <p>i'm trying to create an 2-dimensional matrix with an array, but i don't quit understand it yet.</p>
  
  <p>I've tried this</p>
  
  <pre><code>for i in range(x):
  for k in range(y):
  array.array('u', [i] : [k])
  </code></pre>
  
  <p>I'm trying to make an field with x, y as in height and width.</p>
  
  <p>edit:</p>
  
  <p>well, i've changed it now and came to this solution, wich fixs my problem</p>
  
  <pre><code>import array
  
  
  x = int(input('width: '))
  y = int(input('height: '))
  
  Matrix = array.array("u", ['.' for i in range(x) for k in range(y)])
  Matrix.tounicode
  print(Matrix)
  </code></pre>
  
  <p>With this i'm creating an field as an array, although i have to see how tounicode really works, possible i need a hash-function.</p>