Q. Suppose t = (1, 2, 4, 4), which of the following statements is incorrect?

  • (A) print(max(t))
  • (B) print(t[2])
  • (C) print(len(t))
  • (D) t[2] = 3
πŸ’¬ Discuss
βœ… Correct Answer: (D) t[2] = 3
Explanation: Values cannot be changed in case of a tuple, i.e. tuple is immutable.
Explanation by: Rajeev Malhotra
Values cannot be changed in case of a tuple, i.e. tuple is immutable.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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