title: How to create an empty array and append it?
body: <p>I am new to programming.
  I am trying to run this code </p>
  
  <pre><code>from numpy import *
  
  x = empty((2, 2), int)
  
  x = append(x, array([1, 2]), axis=0)
  
  x = append(x, array([3, 5]), axis=0)
  
  print(x)
  </code></pre>
  
  <p>But i get this error </p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/samip/PycharmProjects/MyCode/test.py", line 3, in &lt;module&gt;
  
      x = append(x, array([1, 2]), axis=0)
  
    File "&lt;__array_function__ internals&gt;", line 5, in append
  
    File "/usr/lib/python3/dist-packages/numpy/lib/function_base.py", line 4700, in append
  
      return concatenate((arr, values), axis=axis)
  
    File "&lt;__array_function__ internals&gt;", line 5, in concatenate
  
  ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 2 dimension(s) and the array at index 1 has 1 dimension(s)
  </code></pre>