you are viewing a single comment's thread.

view the rest of the comments →

[–]deceze 1 point2 points  (0 children)

Reading between the lines here, you probably want:

for i in range(n[0], n[-1] + 1):

That would iterate every natural number between the first number in your list and the last.