Skip to content

Commit 9b3f869

Browse files
authored
Merge pull request satwikkansal#227 from amitShindeGit/patch-1
Update README.md
2 parents 9e28e00 + d4ad5a0 commit 9b3f869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ True
12281228
>>> print("\n")
12291229
12301230
>>> print(r"\\n")
1231-
'\\\\n'
1231+
'\\n'
12321232
```
12331233
- This means when a parser encounters a backslash in a raw string, it expects another character following it. And in our case (`print(r"\")`), the backslash escaped the trailing quote, leaving the parser without a terminating quote (hence the `SyntaxError`). That's why backslashes don't work at the end of a raw string.
12341234

0 commit comments

Comments
 (0)