I'm writing a script in Python that parses text from a file. One thing I need is to be able to read two chars that make up an escape char, like \ and n -> '\n'. So basically, how can I take a string "\" and combine it with "n" to become the escape char "\n"?
Thanks in advance.
EDIT: Solved in another question: Process escape sequences in a string in Python
Thanks for the help!