a = [1, 2, 3] b = [10, 20] a.append(b) # Output: [1, 2, 3, [10, 20]] a.extend(b) # Output: [1, 2, 3, 10, 20]