python read string backwards until the n character code example Example: python string reverse 'hello world'[::-1] # 'dlrow olleh'