python if string is equal to reverse string code example Example: reverse string in python 'hello world'[::-1] 'dlrow olleh'