how to get the current thing in this code
<p>this is my code :</p>

<pre><code>class a():
    def __init__(self):
        self.a="aaa"
        self.b='bbb'

aa=a()
x=['a','b','c']
for i in x:
    print aa.get(i)
</code></pre>

<p>it show error :</p>

<pre><code>Traceback (most recent call last):
  File "a.py", line 10, in &lt;module&gt;
    print aa['a']
AttributeError: a instance has no attribute '__getitem__'
</code></pre>

<p>what can i do ,</p>

<p>thanks</p>

<p><strong>updated:</strong></p>

<p>i want print 'aaa' and 'bbb'</p>
