title: What is the difference between single and double bracket Numpy array?
body: <pre><code>import numpy as np
  a=np.random.randn(1, 2)
  b=np.zeros((1,2))
  print("Data type of A: ",type(a))
  print("Data type of A: ",type(b))
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Data type of A:  &lt;class 'numpy.ndarray'&gt;
  Data type of A:  &lt;class 'numpy.ndarray'&gt;
  </code></pre>
  
  <p>In np.zeros(), to declare an array we give the input in 2 brackets whereas in np.random.radn(), we give it in 1 bracket?</p>
  
  <p>Is there any specific reason for the syntax,as both of them are of same data type but follow a different syntax?</p>