python print string in reverse using .reverse code example Example: how to reverse a string in python 'your sting'[::-1]