From d4ad5a06436fb0cf7b9c307cf9ac9e745e58092f Mon Sep 17 00:00:00 2001 From: AmitShinde <68842692+amitShindeGit@users.noreply.github.com> Date: Thu, 1 Oct 2020 19:41:25 +0530 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f30a41..5ad8af7 100644 --- a/README.md +++ b/README.md @@ -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.