Get items of the list from dictionary
<p>I try to call up a list stored in the dictionary:</p>

<pre><code>obj = {
    'a' : [0,1,2],
    'b' : {
        'c' : [0,1,2]
    }
}
</code></pre>

<p>The code below is correct for <code>JavaScript</code>, but not in <code>Python</code></p>

<pre><code>print(obj.a[0], obj.b.c[0])

Traceback (most recent call last):
  File "test.py", line 57, in &lt;module&gt;
  print(obj.a[0], obj.b.c[0])
AttributeError: 'dict' object has no attribute 'a'
</code></pre>

<p>So, How to get the items of the list?</p>
