1/22/2014

(python study) about tuple variable (example source code)

#tuple is similar with list but notation is () and read only
#but access speed is faster than list

t = (1, 2, 3)
print( type(t) )
#< class 'tuple'>

a, b = 1, 2
(a, b) = (1, 2)
print(a, b)
#1 2