I have created this function to parse the list:
listy = [\'item1\', \'item2\',\'item3\',\'item4\',\'item5\', \'item6\'] def coma(abc): for i in abc[0:-
Might as well round out the solutions with a recursive example.
>>> listy = ['item1', 'item2','item3','item4','item5', 'item6'] >>> def foo(a): if len(a) == 1: return ', and ' + a[0] return a[0] + ', ' + foo(a[1:]) >>> foo(listy) 'item1, item2, item3, item4, item5, , and item6' >>>