KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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.
Tags (comma-separated)
Save Edits
Cancel