Python-list Digest, Vol 70, Issue 123
python at mrabarnett.plus.com
Thu Jul 9 06:39:34 EDT 2009
> Hello ,
> When i==0 you append an empty list to arr, so arr[i] is arr. No
> When i==10 you append another empty list to arr, so arr[i] is arr.
> Index error because there's no arr, only arr and arr.
> Thanks for your prompt reply...
> How can i pass this problem
You could try appending to arr[-1] instead.
row = 
for j in range(0,1001,1):
More information about the Python-list