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.
Q. print sum
β
Correct Answer: (B)
12
Explanation by: Mr. Dubey
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.
Discussion
Question Analytics
771
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
96%
Success Rate