Source Code:
(back to article)
my_list = [1, 2, 3] my_tuple = tuple(my_list) print(my_tuple) # Output (1, 2, 3)
Result:
Report an issue