how to print the string with escape characters python code example Example: python escape characters \' Single Quote \\ Backslash newline = '\n'