TypeError: 'int' object is unsubscriptable
<p>I am running into this problem -
TypeError: 'int' object is unsubscriptable</p>

<p>This happens at the line: (more code below)
sectorcalc[i][2]= ((today[2]/yesterday[2])-1)</p>

<p>But the object today[2] is , any ideas?</p>

<p>Also, I couldn't find a good definition of unsubscriptable for python anywhere?  what does this actually mean the problem is?</p>

<p>Thanks in advance:</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>
