πŸ“Š Python
Q. What is the output of the following Python code?
Code:
list1 = [1, 2, 3]
list2 = list1
list2.append(4)
print(list1)
  • (A) [1,2,3]
  • (B) [1,2,3,4]
  • (C) [2,3,4]
  • (D) [1,4,2,3]
πŸ’¬ Discuss
βœ… Correct Answer: (B) [1,2,3,4]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
259
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
89%
Success Rate