On Wed, Jul 9, 2008 at 3:23 PM, Robert <[EMAIL PROTECTED]> wrote: > given d: > d = ["soep", "reeds", "ook"] > > I want it to print like > soep, reeds, ook
use the join() method of strings, like this: >>> d = ["soep", "reeds", "ook"] >>> ', '.join(d) 'soep, reeds, ook' >>> d = [] >>> ', '.join(d) '' >>> -- Jerry -- http://mail.python.org/mailman/listinfo/python-list