assigning a list in python
<pre><code>pt=[2]
pt[0]=raw_input()
</code></pre>

<p>when i do this , and give an input suppose 1011 , it says list indexing error- " list assignment index out of range" . may i know why? i think i am not able to assign a list properly . how to assign an array of 2 elements in python then?</p>
