How to break a string across several lines but print as one line?

Derek Basch dbasch at yahoo.com
Fri Aug 23 17:02:00 EDT 2002


Hello,
I have a very long string that I would like to be able
to break across several lines. However, I need the
string to print as one line. If I do something like
this:

foo = '''your momma is sooooo fat that she
         fooballs.'''

it prints as:

your momma is sooooo fat that she
fooballs.

I would like it as:

your momma is sooooo fat that she fooballs.

any suggestions?
Thanks a bunch,
Derek Basch





__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com




More information about the Python-list mailing list