concat next line with previous

Tim Williams tim at tdw.net
Tue Sep 26 08:37:44 EDT 2006


On 26 Sep 2006 03:16:25 -0700, s99999999s2003 at yahoo.com
<s99999999s2003 at yahoo.com> wrote:
> hi
> what is the python way to concat 2 lines eg
>
> line  1 with some text
> line 2 with some text
>
> i want to bring line 2 up , such that i get one whole string.
>
> line  1 with some text line 2 with some text
>

also

line3 = "%s %s" % (line1, line2)



More information about the Python-list mailing list