I want to do something like:
a,b,c,d = 1,2,3,4
a,b,c,d += 2,4,6,8
But this does not work. I know I can increase them individually but I thought there would be a simpler way. The only alternative I came up with was this ugly list comprehension:
a,b,c,d = [j+k for idxj,j in enumerate((a,b,c,d)) for idxk,k in enumerate((2,4,6,8)) if idxj==idxk]
Is there a better way?