>>> eval('"hello \n"')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
"hello
^
SyntaxError: EOL while scanning string literal
>>> eval('"hello \\n"')
'hello \n'
>>> print(eval('"hello \\n"'))
hello
>>>