how to vaildate escaped string in python code example Example: python escape characters \' Single Quote \\ Backslash newline = '\n'