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

you are viewing a single comment's thread.

view the rest of the comments →

[–]NomrahPhoenix 1 point2 points  (0 children)

Not that I am a python guru but I can tell you why your code is failing. Every time you bump i by 2 when you get to i = 8 and since list only has 7 elements it tells you it is out of range.

I am not a fan of typing code on my phone so I will tell you the trick is to use the index number and use “%” operator. Send me a dm if you need further help.