t1=(1,2,3,4,5)
t2=(6,7,8,9)
t2=(6,7,8,9)
print("tuple repeatation: ",t1*2)
print("=============")
print("tuple concatination: ",t1+t2)
print("=============")
print("tuple membership")
print (2 in t1)
print("=============")
print("tuple iteration")
for i in t1:
print(i)
print("=============")
print("lenght of tuple: ", len(t1))
print("=============")
max(t1)
man(t1)
print("=============")
print(i)
print("=============")
print("lenght of tuple: ", len(t1))
print("=============")
max(t1)
man(t1)
print("=============")
OUTPUT:
tuple repeatation: (1, 2, 3, 4, 5, 1, 2, 3, 4, 5)
=============
tuple concatination: (1, 2, 3, 4, 5, 6, 7, 8, 9)
=============
tuple membership
True
=============
tuple iteration
1
2
3
4
5
=============
lenght of tuple: 5
=============
5
1
=============