1.

If a={5,6,7,8}, which of the following statements is false?(a) print(len(a))(b) print(min(a))(c) a.remove(5)(d) a[2]=45I got this question in quiz.The query is from Sets topic in section Tuples and Sets of Python

Answer»

The correct choice is (d) a[2]=45

Best EXPLANATION: The MEMBERS of a set can be accessed by their INDEX values since the elements of the set are unordered.



Discussion

No Comment Found

Related InterviewSolutions