Python escape sequences

PHOTO EMBED

Sun Dec 11 2022 07:54:55 GMT+0000 (Coordinated Universal Time)

Saved by @Harman

#Escape squence coding


Print("Line A \n Line B") #\n is used for new line 
Print("Line A\t LineB") #\t is used for tab space
Print("LineAA\b Line B") #\b is used for back space
content_copyCOPY

Character combinations consisting of a backslash (\) followed by a letter or by a combination of digits are called "escape sequences." To represent a newline character, single quotation mark, or certain other characters in a character constant, you must use escape sequence