How to fix TypeError: 'file' object is unsubscriptable
<p>Im kinda new to python, and dont really understand my issue, really appreciate the help. Anyways, this is the line of coding.</p>

<pre><code>def Banker(warrior):
    gold = open(chairs[warrior-1], "strength")
    return gold
</code></pre>

<p>This is the error i got.</p>

<pre><code>line 22, in Banker
    gold = open(chairs[warrior-1], "strength")
TypeError: 'file' object is unsubscriptable
</code></pre>

<p><a href="http://pastebin.com/1wMbaSYY" rel="nofollow">http://pastebin.com/1wMbaSYY</a></p>
