How to fix SyntaxWarning: invalid escape sequence in Python? For convenience, you can use the following method to automatically add r to docstrings: write a script using e g libcst to parse the source code, modify it to add r at appropriate places, then write it back run the script on your code The advantage of using CST over AST is for example number of parentheses or white spaces are preserved
Difference between chr (13) and chr (10) - Stack Overflow Chr(10) is the Line Feed character and Chr(13) is the Carriage Return character You probably won't notice a difference if you use only one or the other, but you might find yourself in a situation where the output doesn't show properly with only one or the other So it's safer to include both