python string reverse() code example
Example 1: reverse string in python
'hello world'[::-1]
'dlrow olleh'
Example 2: how to reverse a string in python
'your sting'[::-1]
'hello world'[::-1]
'dlrow olleh'
'your sting'[::-1]