For the lists A and B below:
A=[8, 4, 5]
B=[0,0,0,0,0,0,0,0,0,0]
I would like to combine them to give 'C':
C=[8,4,5,0,0,0,0,0,0,0]
Code I have tried:
C = [B(x) for x in A else 0 for x in B]
But I recieve a syntax error.
Can someone help with the correct syntax to achieve the 'Desired Output'. Thankyou.