title: Divide every element in a python nested array by an integer
body: <p>I have a large nested list in python, with some of the elements in the list being numpy arrays. Its structure is as follows:</p>
  
  <pre><code>listExample[x][y][z] = an integer
  listExample[x][y] = a numpy array
  </code></pre>
  
  <p>There are many combinations of x, y, and z. I'd like to divide all the integers in the list array (all of which are in <code>list[x][y][z]</code>) by 100.</p>
  
  <p><strong>Example structure of list/array:</strong></p>
  
  <pre><code>listExample[
   [
    [ [100, 200, 300], [230, 133, 234] ],
    [ [234, 232, 523], [231, 234, 554] ]
   ],
   [
    [ [701, 704, 204], [331, 833, 634] ],
    [ [734, 632, 523], [131, 434, 154] ]
   ] 
  ]
  </code></pre>
  
  <p><strong>I am trying to generate an output like this for the above example of the list:</strong></p>
  
  <pre><code>listExample[
   [
    [ [1, 2, 3], [2.3, 1.33, 2.34] ],
    [ [2.34, 2.32, 5.23], [2.31, 2.34, 5.54] ]
   ],
   [
    [ [7.01, 7.04, 2.04], [3.31, 8.33, 6.34] ],
    [ [7.34, 6.32, 5.23], [1.31, 4.34, 1.54] ]
   ] 
  ]
  </code></pre>
  
  <p><em>I have used indentations in the above example input and output to make it easier to read a multidimensional array.</em></p>
  
  <p>Other questions on StackOverflow divide lists by integers using numpy or something like this:</p>
  
  <pre><code>listExample = [i/100 for i in listExample]
  </code></pre>
  
  <p>This doesn't work, however, as this is a nested array. It will spit out this error:</p>
  
  <pre><code>TypeError: unsupported operand type(s) for /: 'list' and 'int'
  </code></pre>
  
  <p><strong>So, how am I supposed to divide every integer in my array/list by 100?</strong></p>