Start index for iterating Python list

The Solution to Start index for iterating Python list is


You can use slicing:

for item in some_list[2:]:
    # do stuff

This will start at the third element and iterate to the end.

~ Answered on 2011-05-27 06:31:21


Most Viewed Questions: