πŸ“Š Problem Solving and Python Programming
Q. print sum
  • (A) 11
  • (B) 12
  • (C) 21
  • (D) 22
πŸ’¬ Discuss
βœ… Correct 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.


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