Typing \n in strings

Edward Diener eldiener at earthlink.net
Sat Apr 3 21:47:13 EST 2004


Python 2.3.3 on Win2K. In the Python tutorial it says that typing \n in
string literals is the new-line character. I open the interpreter and type a
string with a \n in it but instead of outputting a string with a new line,
it outputs the \n as literal characters of the string. Is the tutorial
wrong, is the interpreter broken, or what is happening ?





More information about the Python-list mailing list