Q.

print sum

A. 11
B. 12
C. 21
D. 22
Answer» B. 12
Explanation: when assigning names1 to names2, we create a second reference to the same list. changes to names2 affect names1. when assigning the slice of all elements in names1 to names3, we are creating a full copy of names1 which can be modified independently.
1.4k
0
Do you find this helpful?
12

Discussion

No comments yet