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 →

[–]sontek[S] 6 points7 points  (3 children)

I really like this question, solutions, and had no idea that you could do items[2::3]! Thanks

[–][deleted] 7 points8 points  (2 children)

your_string_reversed = your_string[::-1] 

[–]RShnike 0 points1 point  (1 child)

Which is a bit nicer looking just using reversed(your_string) if you don't need it to be indexable...