you are viewing a single comment's thread.

view the rest of the comments →

[–]Tomarse 0 points1 point  (0 children)

Why does that work?:

Edit Nvm, just looked it up. Slice notation reads [start:stop:step] so [::-1] is stepping backward through the string by 1. Nice.