If we have 2 Python lists as follow: List1 = [10, 20, 30] List2 = [40, 50,…

PYQ KVS TGT/PGT 2023

If we have 2 Python lists as follow:

List1 = [10, 20, 30]
List2 = [40, 50, 60]

If we want to generate a list List3 as

List3 = [10, 20, 30, 40, 50, 60]

then best Python command out of the following is:

  1. A.

    List3=List1 + List2

  2. B.

    List3= List1.append (List2)

  3. C.

    List3= List1.update (List2)

  4. D.

    List3= List1.extend (List2)

Attempted by 2233 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…