title: Error in assigning values to an element of 4D array
body: <p>New to python and trying to resolve the below -</p>
  
  <p>I am trying to assign a value to a 4D array element, but I get the error "'int' object does not support item assignment". I'm not sure why I'm getting the error.</p>
  
  <pre><code>#Some calculation to get val
  X[i,j,k,l] = val
  </code></pre>
  
  <p>This is the first time X is defined/assigned value in the code. The value 'val' is a float, but I don't think this is affect the assignment.</p>
  
  <p>Could anyone explain what might be causing the error? Thanks.</p>