πŸ“Š Python
Q. What will be the output of the following code snippet?
Code:
a = [1, 2, 3]
a = tuple(a)
a[0] = 2
print(a)
  • (A) [2, 2, 3]
  • (B) (2, 2, 3)
  • (C) (1, 2, 3)
  • (D) Error.
πŸ’¬ Discuss
βœ… Correct Answer: (D) Error.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
373
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
89%
Success Rate