Index   Python   Japanese   Chainmaille   Leather

Escape Sequences

"" Tells Python to interpret it's contents literally.
Escape Sequences escape (or break out of) "", allowing characters to be interpreted.
I.E. Inserting special characters like tab or line break.

 An escape sequence tells the program to process special characters
  print("1t2")
   1t2
  print("1\t2")
   1 2

 Escape special characters to print them instead of interpret them
   print("1\\t2")
   1\t2

List of Escape Sequences

\b - Backspace

\n - Newline

\t - Horizontal tab

\\ - Print \

\' - Print '

\" - Print "

Home   Data Types   Variables   Functions   Escape Sequences   Program Comments