1.

What is the data type of (1)?(a) Tuple(b) Integer(c) List(d) Both tuple and integerI had been asked this question in an interview for job.My question comes from Tuples topic in chapter Tuples and Sets of Python

Answer» RIGHT choice is (b) Integer

For explanation: A TUPLE of ONE ELEMENT must be CREATED as (1,).


Discussion

No Comment Found

Related InterviewSolutions