python write string backwards code example
Example 1: python reverse string
'String'[::-1] #-> 'gnirtS'
Example 2: Reverse string in python
txt = "Hello World" [::-1]
print(txt)
'String'[::-1] #-> 'gnirtS'
txt = "Hello World" [::-1]
print(txt)