1.

Which of the following is a Python tuple?(a) [1, 2, 3](b) (1, 2, 3)(c) {1, 2, 3}(d) {}I have been asked this question in an interview.The query is from Tuples topic in section Tuples and Sets of Python

Answer»

Correct OPTION is (B) (1, 2, 3)

Easy explanation - TUPLES are REPRESENTED with round brackets.



Discussion

No Comment Found

Related InterviewSolutions