Source Code:
(back to article)
my_list = [[1,2],[3,4],[5,6]] my_tuple = tuple([tuple(i) for i in my_list]) print(my_tuple) # Ausgabe: ((1, 2), (3, 4), (5, 6))
Result:
Report an issue