[Tutor] Interactive escape sequences

Christian Alexander christian.h.alexander at gmail.com
Tue Jan 14 08:42:07 CET 2014


Hello Tutorians,

Why does the interactive prompt not recognize escape sequences in strings?
 It only works correctly if I use the print function in python 3.

>>> "Hello\nWorld"
"Hello\nWorld"

-- 
Regards,

Christian Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140114/fb5e805d/attachment-0001.html>


More information about the Tutor mailing list