Update README.md

This commit is contained in:
AmitShinde
2020-10-01 19:41:25 +05:30
committed by GitHub
parent 9e28e00123
commit d4ad5a0643

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.