Q. What is the output of list((1, 2, 3))?

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

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

Entri Contact Image

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