Share
Combine lists
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Write a program to combine the given lists into A.
A=[3,6,7,8]
B=[2,6,9,11,40]
Answers ( 2 )
Use A.extend(B) to combine both into A.
A=[3,6,7,8]
B=[2,6,9,11,40]
C= A+B