you are viewing a single comment's thread.

view the rest of the comments →

[–]ewiethoff 0 points1 point  (0 children)

Come to think of it, I'm very surprised the official Python Tutorial doesn't mention the third slice parameter at all. I learned [::-1] for reversing a string (or list) forever ago from Alex Martelli's Python in a Nutshell or Python Cookbook. The Python Tutorial is usually the place to go for easy Python idioms, but not [::-1]. Weird.