<p>What would be your preferred way to concatenate strings from a sequence such that between every two consecutive pairs a comma is added. That is, how do you map, for instance, <code>['a', 'b', 'c']</code> to <code>'a,b,c'</code>? (The cases <code>['s']</code> and <code>[]</code> should be mapped to <code>'s'</code> and <code>''</code>, respectively.)</p>

<p>I usually end up using something like <code>''.join(map(lambda x: x+',',l))[:-1]</code>, but also feeling somewhat unsatisfied.</p>

```
```
my_list = ['a', 'b', 'c', 'd']
my_string = ','.join(my_list)
```
```
```
```
'a,b,c,d'
```
```
This won't work if the list contains integers
And if the list contains non-string types (such as integers, floats, bools, None) then do:
```
```
my_string = ','.join(map(str, my_list))
```
```