- 1
But what if you want to include a single quote in a single-quoted string (or a double quote in a double-quoted string)? Normally
But what if you want to include a single quote in a single-quoted string (or a double quote in a double-quoted string)? Normally this would confuse Python and break the code, that is unless you escape the quotes using a backslash.
1 ответ
+ 2
The "Normal" way is to escape using a backslash. As I understand, there's no more "Normal" way than that, honestly.