Consider the Python lists A=[1,2,3] and B=[4,5,6]. Which statement 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)
Source: GATE DA
Programming · Python, C & Pseudocode · Problem 4
Consider the Python lists A=[1,2,3] and B=[4,5,6]. Which statement results in A = [1, 2, 3, 4, 5, 6]?
Source: GATE DA
Free. Sign in with Google to read Srijit's solutions and talk the problems through with everyone in the cohort.