SyntaxFix
Write A Post
Hire A Developer
Questions
For the odd positions, you probably want:
>>>> list_ = list(range(10)) >>>> print list_[1::2] [1, 3, 5, 7, 9] >>>>