Python strings question (vertical stack)
sjmachin at lexicon.net
Tue Nov 20 22:59:58 CET 2007
On Nov 21, 7:15 am, Farshid Lashkari <n... at spam.com> wrote:
> J. Clifford Dyer wrote:
> > I think you mean '\n'.join([string1,string2,string3])
> > You actually do want the \ to do its thing in this case.
> Yeah, my brain must still be asleep. Thanks for waking it up :)
You're not alone :-)
>>> a = """
>>> '\n'.join(['x', 'y', 'z'])
More information about the Python-list