Python Escape Sequences

  1. \\
    Backslash (\)
  2. \'
    Single-quote (')
  3. \"
    Double-quote (")
  4. \a
    ASCII bell (BEL)
  5. \b
    ASCII backspace (BS)
  6. \f
    ASCII formfeed (FF)
  7. \n
    ASCII linefeed (LF)
  8. \N{name}
    Character named name in the Unicode database (Unicode only)
  9. \r
    Carriage Return (CR)
  10. \t
    Horizontal Tab (TAB)
  11. \uxxxx
    Character with 16-bit hex value xxxx (Unicode only)
  12. \Uxxxxxxxx
    Character with 32-bit hex value xxxxxxxx (Unicode only)
  13. \v
    ASCII vertical tab (VT)
  14. \ooo
    Character with octal value ooo
  15. \xhh
    Character with hex value hh
Author
Anonymous
ID
320729
Card Set
Python Escape Sequences
Description
String escape sequences in Python
Updated