CCNP 350-401 ENCOR Question 532 DISCUSSION
« Back to Main MenuRefer to the exhibit. What is the value of the variable list after the code is run?
list = [1, 2, 3, 4]
list[3] = 10
print(list)
A. [1, 10, 10, 10]
B. [1, 2, 10]
C. [1, 2, 10, 4]
D. [1, 2, 3, 10]
Refer to the exhibit. What is the value of the variable list after the code is run?
list = [1, 2, 3, 4]
list[3] = 10
print(list)
A. [1, 10, 10, 10]
B. [1, 2, 10]
C. [1, 2, 10, 4]
D. [1, 2, 3, 10]
Correct Answer: D