1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-22 02:54:25 +01:00

Update README.md

This commit is contained in:
AmitShinde 2020-10-01 19:41:25 +05:30 committed by GitHub
parent 9e28e00123
commit d4ad5a0643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.