πŸ“Š Python
Q. What will be the output of the following Python code?
Code:
l=[2, 3, [4, 5]] l2=l.copy() l2[0]=88 l l2
  • (A) [88, 2, 3, [4, 5]] [88, 2, 3, [4, 5]]
  • (B) [2, 3, [4, 5]] [88, 2, 3, [4, 5]
  • (C) [88, 2, 3, [4, 5]] [2, 3, [4, 5]]
  • (D) [2, 3, [4, 5]] [2, 3, [4, 5]]
πŸ’¬ Discuss
βœ… Correct Answer: (B) [2, 3, [4, 5]] [88, 2, 3, [4, 5]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
246
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
92%
Success Rate