write a python function to reverse a string using while loop code example
Example 1: how to reverse a string in python
'your sting'[::-1]
Example 2: python string reverse
'hello world'[::-1]
# 'dlrow olleh'
'your sting'[::-1]
'hello world'[::-1]
# 'dlrow olleh'