reverse contents of a string python code example Example: python reverse string 'String'[::-1] #-> 'gnirtS'