title: TypeError: 'int' object is unsubscriptable
body: <p>In python I get this error:</p>
  
  <pre><code>TypeError: 'int' object is unsubscriptable
  </code></pre>
  
  <p>This happens at the line:</p>
  
  <pre><code>sectorcalc[i][2]= ((today[2]/yesterday[2])-1)
  </code></pre>
  
  <p>I couldn't find a good definition of unsubscriptable for python anywhere.  </p>
  
  <pre><code>for quote in sector[singlestock]:
          i+=1
          if i &lt; len(sector):
              if i==0:
                  sectorcalc[i][0]= quote[0]
                  sectorcalc[i][2]= 0
                  sectorcalc[i][3]= 0
                  sectorcalc[i][4]= 0
                  sectorcalc[i][5]= 0
                  sectorcalc[i][6]= 0
                  sectorcalc[i][7]= 0
              else:                    
                  yesterday = sector[singlestock-1][i]
  
                  print yesterday                                
  
                  today = quote
  
                  print type(today[2])
                  sectorcalc[i][2]= ((today[2]/yesterday[2])-1)
                  sectorcalc[i][3]= (today[3]/yesterday[3])-1
                  sectorcalc[i][4]= (today[4]/yesterday[4])-1
                  sectorcalc[i][5]= (today[5]/yesterday[5])-1 
                  sectorcalc[i][6]= (today[6]/yesterday[6])-1
                  sectorcalc[i][7]= (today[7]/yesterday[7])-1
  </code></pre>
  
  <p>What does this error mean?</p>