Combine lists

Question

Write a program to combine the given lists into A.

A=[3,6,7,8]

B=[2,6,9,11,40]

in progress 0
YashikaKhurana 4 years 2 Answers 807 views Master 0

Answers ( 2 )

  1. Use A.extend(B) to combine both into A.

  2. A=[3,6,7,8]

    B=[2,6,9,11,40]

    C= A+B

Leave an answer

Browse
Browse