

InterviewSolution
Saved Bookmarks
1. |
Suppose t = (1, 2, 4, 3), which of the following is incorrect?(a) print(t[3])(b) t[3] = 45(c) print(max(t))(d) print(len(t))The question was asked during a job interview.This interesting question is from Tuples in section Tuples and Sets of Python |
Answer» CORRECT answer is (b) t[3] = 45 To explain: VALUES cannot be MODIFIED in the case of tuple, that is, tuple is IMMUTABLE. |
|