top of page

Tuples

Tuples can be created using parentheses. 

​

> (1,2,3)

(1, 2, 3)

> (1,)

(1,) 

​

A pair of items can be converted to a tuple using the ,, operator

​

> 1,,2

(1, 2)

bottom of page