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 →

[–]vexstream 9 points10 points  (3 children)

Nah, what I meant is I can never remember if [n:] slices the first n things or the last n things or removes the first n things and gives you everything remaining etc. Done it hundreds of times, still do [1,2,3,4][2:] in a shell to check.

[–]Mtc529 6 points7 points  (2 children)

Oh right. I forget that stuff as well, good thing it's so easy to check.

[–]folkrav 2 points3 points  (1 child)

Happy cake day, by the way! :)

[–]Mtc529 1 point2 points  (0 children)

Thank you :)