1
GATE AI 2025
MCQ (Single Correct Answer)
+1
-0

Consider the following Python declarations of two lists.

$$ \begin{aligned} & A=[1,2,3] \\ & B=[4,5,6] \end{aligned} $$

Which one of the following statements results in $A=[1,2,3,4,5,6]$ ?

A
A.extend(B)
B
A.append(B)
C
A.update(B)
D
A.insert(B)