Re: How to generate "a, b, c, and d"?



On Fri, Dec 16, 2011 at 11:57 AM, Terry Reedy <tjreedy@xxxxxxxx> wrote:
 items[-1] = "and " + items[-1]
 return ", ".join(items)

This works only if you're sure there are at least two items, and if
you don't mind two items coming out as "a, and b".

ChrisA
.