Single Choice Not Set

QWhat will be the output after the following statements?
import copy
x = [5, 4, 3, 2, 1]
y = copy.copy(x)
x.append(6)
print(y[0])

ID: #3942 Python Built-in Functions MCQ 261 views
Question Info
#3942Q ID
Not SetDifficulty
Python Built-in Functions MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A [6, 4, 3, 2, 1]
  • B [5, 4, 3, 2, 1]
  • C 5
  • D 6
Correct Answer

Explanation

5

Share This Question

Challenge a friend or share with your study group.