On Thu, Jan 3, 2013 at 1:00 AM,  <stringsat...@gmail.com> wrote:
>>>> '''hello
> world'''
> 'hello\nworld'
>>>> fred=''' hello
> world'''
>>>> print(fred)
>  hello
> world

That's because repr() converts the newline into "\n", while print
renders it literally. Check out repr() in the docs:

http://docs.python.org/3/library/functions.html?highlight=repr#repr

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to