On Sep 18, 7:59 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 17 Sep 2007 18:15:29 -0300, Shawn Minisall <[EMAIL PROTECTED]>
> escribi?:
>
> > I'm trying to get a space in between these two strings but it's ignoring
> > the space in between when it prints.
>
> >  >>> string.capwords (string.join([s1 + " " + s2])) * 3
> > 'Spam Ni!Spam Ni!Spam Ni!'
>
> It doesn't matter how many spaces you put in between, capwords will
> collapse all of them into a single space.

This is true. However AFAICT the OP doesn't have multiple spaces --
unless of course his unspecified s1 had trailing space(s) and/or his
unspecified s2 had leading space(s)!!


-- 
http://mail.python.org/mailman/listinfo/python-list
  • Re: qa John Machin
    • Re: qa John Machin

Reply via email to