You can do it like this:
>>> t = (1,2,3)
>>> x,y,z = [1,2,3],[4,5,6],[7,8,9]
>>> x[len(x):],y[len(y):],z[len(z):] = tuple(zip(t))
>>> x
>>> [1,2,3,1]
>>> y
>>> [4,5,6,2]
>>> z
>>> [7,8,9,3]
If you want to insert at the beginning, you can do
>>> x[:0],y[:0],z[:0] = tuple(zip(t))
source
share