im new to python i've just started. so im trying to merge two lists into each other in one big list. input:
A = [[a,1],[b,2],[c,3]]
B = [10,20,30]
desired output:
c = [[a,1,10],[b,2,20],[c,3,30]]
i tried insert method but it does not add B elements inside each individual list inside the A list
and i tried c.extend([a,b]) but it gave me this:
[10,[a,1],20,[b,2],30,[c,3]]
what seems to be the problem because im really confused. thanks
[l+[n] for l, n in zip(a, b)]a, b, cmeant to be strings? If so they should be in quotes.