reverse string python with for loop code example Example: python string reverse 'hello world'[::-1] # 'dlrow olleh'