<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello ,<br>
          When i==0 you append an empty list to arr, so arr[i] is arr[0]. No<br>
problem.<br>
<br>
When i==10 you append another empty list to arr, so arr[i] is arr[10].<br>
Index error because there's no arr[10], only arr[0] and arr[1].<br>
 <br>
Thanks for your prompt reply...<br>
<br>
How can i pass this problem<br>
<br>
</blockquote>
You could try appending to arr[-1] instead.<br>
<br>
Better still:<br>
<br>
    ...<br>
    row = []<br>
    for j in range(0,1001,1):<br>
          row.append(i+j)<br>
    arr.append(row)<br>
    ...<br clear="all">I tried both the ways... the only thing is its not coming like 0 10 20.......1000 . Its coming like 0,1,2,........1000.....Any answer to the problem. <br>Thanks <br>Tanmoy Mukherjee<br>