reverse string in python in place code example Example 1: python reverse string 'String'[::-1] #-> 'gnirtS' Example 2: reverse a string in python reverse a string