Examveda

What will the following code output:
my_list = [1, 2, 3]
new_list = my_list.copy()
print(new_list)

A. [1, 2, 3]

B. [1, 2, 3, 1, 2, 3]

C. [1, 1, 2, 2, 3, 3]

D. [2, 1, 3]

Answer: Option A


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python