I'm trying to build a poly-alphabetic cipher but I can't find a way of adding a smaller list into a larger list, I have tried with list comprehensions, but still cannot do it. Please help! I want the smaller list to keep adding the same numbers to the larger list
so lets say I have 2 lists like this:
x = [1,2,3]
y = [4,5,6,7,8,9]
z = [i + j for i,j in zip(x,y)]
the result is the following
print(z)
[5,7,9]
how can I make it so it is:
[5,7,9,8,10,12]
meaning it keeps adding the same numbers to the longer list, thank you for the help