python logo

Special Characters

Special characters in strings are: \ (Backslash) : an escape character \n : specifies new line within the string \t : adds a tab print("My name is Marshmallow. \ I wag my tail when I'm happy. \ I bark at speedy motorcycles \ and unwanted visitors.") print("\n") print("\\n") print("My name is Marshmallow.\nI wag my tail when I'm happy.\nI bark at speedy motorcycles\nand unwanted visitors....

February 11, 2022 · 1 min · Kei