30 Dec 2005 20:44:29 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> i want them to be on the same line when they are written to the file.
> right now they are written like this:
>
> food
> price
> store
>
> i want them to be written like this
>
> food price store
>
> how do i do that?
>

 >>> print ' '.join(['food', 'price', 'store'])

os.linesep represents newline.


--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to