I have this list:
sampleList=['a','b','c','d']
I need to display the list elements as follows:
a, b, c and d
I tried to join ',' with each list element. However I couldn't get the expected result.
','.join(sampleList)
Each list element is separated by comma and keyword 'and' prior to last element like a, b, c and d.