revert str code example
Example 1: python reverse string
'String'[::-1] #-> 'gnirtS'
Example 2: reverse the string in python
g = "My name is IRONMAN" #reverse the string
print(str(g[::-1]))
'String'[::-1] #-> 'gnirtS'
g = "My name is IRONMAN" #reverse the string
print(str(g[::-1]))