Possible Duplicate:
python: most elegant way to intersperse a list with an element
Assuming I have the following list:
['a','b','c','d','e']
How can I append a new item (in this case a -
) between each item in this list, so that my list will look like the following?
['a','-','b','-','c','-','d','-','e']
Thanks.