title: Runtime error in python:lists
body: <p>why is the following code giving runtime error
  please suggest the reason, cant the arrays be indexed like c++</p>
  
  <pre><code>t=input()
  dp1=[]
  dp3=[]
  dp5=[]
  dp7=[]
  dp1[0]=0
  dp3[0]=0
  dp5[0]=0
  dp7[0]=0
  dp1[1]=1
  dp3[1]=1
  dp5[1]=1
  dp7[1]=1
  i=2
  while i&lt;=10000:
      dp1[i]=dp3[i-1]
      dp5[i]=dp7[i-1]
      dp3[i]=dp1[i-1]+dp5[i-1]
      dp7[i]=dp5[i-1]+dp3[i-1]
      i+=1
  while t&gt;0:
      n=int(raw_input())
      print dp1[n]+dp3[n]+dp5[n]+dp7[n]
      t-=1
  </code></pre>
  
  <p>error message :Runtime error     time: 0.01 memory: 7852 signal:-1</p>