title: Getting "SyntaxError: can't assign to function call" error
body: <p>I'm a beginner and trying to write my first few codes. One of them is &quot;Create a method that takes 'n' Numpy arrays of same dimensions sums them and return the answer.&quot;</p>
  <pre><code>  def sumarr(n,a,b):
        sum = np.zeros((a,b))
        for i in range(1, n+1):
          arr(i) = np.random.randint(10, size(a,b))
          print(arr(i))
          sum = sum + arr(i)
      
        return sum
      
      
      n= int(input(&quot;Enter no. of arrays you wish to take: &quot;))
      a = int(input(&quot;Enter no. of rows here: &quot;))
      b = int(input(&quot;Enter no. of columns here: &quot;))
      
      
      sumarr(n,a,b)
  </code></pre>
  <p>I'm getting &quot;SyntaxError: can't assign to function call&quot; error, not sure why. Can someone please look into this code and point me to the issue and explain while correcting the code.</p>