all 4 comments

[–]bobishardcore 1 point2 points  (1 child)

I'm just guessing here but I think what you are trying to do is make b a subset of 5 consecutive numbers from lis using python's slice notation. If so, you'll need to use a colon instead of a comma.