[Tutor] Logging with proper format

Eike Welk eike.welk at gmx.net
Sun Oct 7 23:47:19 CEST 2007


On Sunday 07 October 2007 22:32, Kent Johnson wrote:
> Eric Brunson wrote:
> > claxo wrote:
> >> dont indent the line after '\', that means 0 indent
> >>
> >> s = 'hello\
> >> boy'
> >
> > Or, arguably better:
> >
> > s = '''hello
> > boy'''
>

And there is even a third way:-)

>>> s = "hello " \
...     "world."
>>> s
'hello world.'

Two strings that are adjacent to each other, are concatenated into one 
string; like in C++.

Regards,
Eike.


More information about the Tutor mailing list