write a python function to reverse a string use the while loop also code example Example: python string reverse 'hello world'[::-1] # 'dlrow olleh'