Easiest way to join list of ints in Python?
python
Solution
print ','.join(map(str,[1, 2, 3])) #Prints: 1,2,3
Mapping str prevents the `TypeError`
Problem
What is the most convenient way to join a list of `int`s to form a `str` without spaces? For example `[1, 2, 3]` will turn `'1,2,3'`. (without spaces). I know that `','.join([1, 2, 3])` would raise a TypeError.