TypeError in python 3.x ('int' object is not subscriptable)
<pre><code>GTIN0 = int(GTIN[0])
</code></pre>

<p>brings up the error</p>

<pre><code>TypeError: 'int' object is not subscriptable
</code></pre>

<p>can someone explain to me why this happens, can you use simple terms as I'm not too experienced at coding so I'm not "in" with the code terms</p>

<p>whatever <code>GTIN</code> is, it's not a list or string and it seems to be an integer so therefore there is no subscripting available. The <code>TypeError</code> states that.</p>

python python-3.x typeerror