In Python, a list of strings can be joined together by
','.join(['ab', 'c', 'def'])
But how could I easily join a list of numbers or some other things? Like this:
0.join([1, 2, 3]) ---> [1, 0, 2, 0, 3]
Now I have to do this:
sum([[x, 0] for x in [1, 2, 3]], [])[:-1]