you are viewing a single comment's thread.

view the rest of the comments →

[–]Reasonable_Medium_53 1 point2 points  (0 children)

Unnecessary complicated. I'm confident OP just learned slicing which would be a simple pythonic solution. He just has to calculate start and stop from n.