> >>> qfields = ['"' + fld.strip() + '"' for fld in (num,desc,date)] > >>> out = qfields.join(',') Just a quick note here to prevent the confusion of the OP...this should be ','.join(qfields) -tkc