reverse a astring in one line python code example Example: python string reverse 'hello world'[::-1] # 'dlrow olleh'