The repr() of a string adds string quotes and backslashes
hello = 'hello, world\n' hellos = repr(hello) print hellos