SyntaxFix
Write A Post
Hire A Developer
Questions
Alternatively, you could do:
for i in range(0, len(a), 2): #do something
The extended slice notation is much more concise, though.