/* */

Wednesday, 23 March 2011

tuple

The tuple function takes a sequence and converts it to a tuple:

tuple([1,2,3])
(1,2,3)
tuple(abc)
('a','b','c')
tuple((1,2,3)) → takes a tuple within a tuple and converts it to one tuple
(1,2,3)

No comments:

Post a Comment