Computer Science

Write the output of the following statements:

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

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

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

Python Tuples

1 Like

Answer

(a)

Output
(10, 20, 40) 

(b)

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

(c)

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

Answered By

1 Like


Related Questions