How can I access list of list in Python?
<p>Here is some code that I wrote:</p>

<pre><code>class supClass:
    supList=[]
    def __init__(self):
        ""

class MyClass:
    listt=[]
    code=None
    def __init__(self):
        ""  

instancelist = [ MyClass() for i in range(4)]
for i in range(0,4):
    instancelist[i].listt.append(supClass())
    instancelist[i].listt.suplist.append(i)
    instancelist[i].code=12


for i in range(4):
    print instancelist[0].listt.suplist
</code></pre>

<p>It produces the following error:</p>

<pre><code>  File "/home/aj/workspace/PythonTutorials/basics/builtFun.py", line 21, in &lt;module&gt;
    instancelist[i].listt.suplist.append(i)
AttributeError: 'list' object has no attribute 'suplist'
</code></pre>

<p>How can I solve this?</p>
