how to get substring in python and reverse it code example Example: python reverse string 'String'[::-1] #-> 'gnirtS'