CBSE Class 11 Computer Science Question 72 of 114

Tuples — Question 9

Back to all questions
9
Question

Question 1(i)

Find the output generated by following code fragments :

T4 = (17)  
type(T4)
Answer
Output
<class 'int'>  
Explanation

Since no comma is added after the element, so even though it is enclosed in parenthesis still it will be treated as an integer, hence T4 stores an integer not a tuple.