title: IndexError: too many indices for array using numpy
body: <p>I have trouble in solving this problem. I am using python numpy. And my goal is to print traffic light countdown.</p>
  <p>EDIT:  So it's like in 1 intersection, there are 8 stoplights, and 3 timings(red,amber,green). But my plus intersection consists of 4 intersection.</p>
  <p>8 stoplights mean
  straight road, north to south
  straight road, south to north
  straight road, east to west
  straight road, west to east</p>
  <p>left turn, north to west
  left turn, west to north
  left turn, north to east
  left turn, east to south</p>
  <pre><code>//edited
  t = np.zeros((4, 8, 3)) //4 intersections, 8 stoplights, 3 timings
  
   for i in range(8):
     for j in range(4):
         t[j,i,0] = 10
         t[j,i,1] = 5
         t[j,i,2] = 10 
  </code></pre>
  <p>In the code stated above, it would give an error  &quot;Too many indices in array&quot;</p>
  <pre><code>t[j,i,0] = 10
  t[j,i,1] = 5
  t[j,i,2] = 10
  </code></pre>
  <p>Can somebody please tell me why and how to solve this.</p>