Vidyalelo
Python · Q25

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 25

Q25

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

A.
[1, 2, 3]
Answer
B.
[1, 2, 3, 1, 2, 3]
C.
[1, 1, 2, 2, 3, 3]
D.
[2, 1, 3]

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board