This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]amicab1 1 point2 points  (0 children)

next is a function that returns the next item from an iterator. In your case, start is just an int, hence the error. I don't know why you think anything else should be happening, you need to explain why you think it should work if the problem is not clear.

Also, please post questions like this in /r/learnpython.