R

Rajeev Malhotra • 3.97K Points
Extraordinary

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
  • Correct Answer - Option(D)
  • Views: 126
  • Filed under category Python

Explanation by: Rajeev Malhotra
Values cannot be changed in case of a tuple, i.e. tuple is immutable.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics