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:
- A.
List3=List1 + List2
- B.
List3= List1.append (List2)
- C.
List3= List1.update (List2)
- D.
List3= List1.extend (List2)
Attempted by 2233 students.
Sign up free to check your answer
Sign up freeLoading lesson…

