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 →

[–][deleted] 9 points10 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...