I have created this function to parse the list:
listy = [\'item1\', \'item2\',\'item3\',\'item4\',\'item5\', \'item6\'] def coma(abc): for i in abc[0:-
You can also try the quoter library
quoter
>>> import quoter >>> mylist = ['a', 'b', 'c'] >>> quoter.and_join(mylist) 'a, b, and c' >>> quoter.or_join(mylist) 'a, b, or c'
https://pypi.python.org/pypi/quoter