Q. What is the output of tuple([1, 2, 3])?

A
[1, 2, 3]
B
(1, 2, 3)
C
{1, 2, 3}
D
Error
Solution:

tuple([1, 2, 3]) converts the list to a tuple, resulting in (1, 2, 3).

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!