Raw strings PREMIUM

Series: Strings
Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
2 min. read Watch as video Python 3.8—3.12

Let's talk about raw strings.

Escapes Sequences can be confusing

Normally backslashes (\) in strings represent escape sequences.

\n represents a newline character:

...

A Python Tip Every Week

Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.