<reponame>tanyong-cq/pythonlearning
#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''
tuple
'''
t1 = (1, 2, 3)
t2 = ('a', 'b', 'c')

print((t1, t2))
print(len(t1))
print(t1[0])
print(t1[1:3])
print(t1*4)
print(1 in t1)
print(t1+t2)
print(tuple([1, 2]))

#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''
tuple
'''
t1 = (1, 2, 3)
t2 = ('a', 'b', 'c')

print((t1, t2))
print(len(t1))
print(t1[0])
print(t1[1:3])
print(t1*4)
print(1 in t1)
print(t1+t2)
print(tuple([1, 2]))
#!/usr/bin/env python # -*- coding: utf-8 -*- tuple