how to print a word in reverse in python code example
Example 1: python reverse string
'String'[::-1] #-> 'gnirtS'
Example 2: reverse string in python
'hello world'[::-1]
'dlrow olleh'
'String'[::-1] #-> 'gnirtS'
'hello world'[::-1]
'dlrow olleh'