CBSE Class 11 Computer Science Question 68 of 88

Tuples and Dictionary — Question 33

Back to all questions
33
Question

Question 16

Write the output of the following statements:

(a) >>> tuple([10,20,40])

(b) >>> ("Tea",)*5

(c) >>> tuple ("Item")

Answer

(a)

Output
(10, 20, 40) 

(b)

Output
('Tea', 'Tea', 'Tea', 'Tea', 'Tea')

(c)

Output
('I', 't', 'e', 'm')