How does r"Hello\nWorld" differ from "Hello\nWorld"?
r"Hello\nWorld"
"Hello\nWorld"
The raw prefix automatically turns the string into a multiline triple-quoted string
Both strings contain a newline at the same position
Only the ordinary string preserves the backslash literally
The raw string keeps \n as literal backslash-plus-n, while the ordinary string contains a newline
\n
n