Merge pull request #227 from amitShindeGit/patch-1

Update README.md
This commit is contained in:
Satwik Kansal 2020-10-01 20:13:07 +05:30 committed by GitHub
commit 9b3f86958a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
README.md vendored
View File

@ -1228,7 +1228,7 @@ True
>>> print("\n")
>>> print(r"\\n")
'\\\\n'
'\\n'
```
- 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.