a = (1,3,4,6,7,1,1,3,3,4,5,2,1,7,8,9,2)
print(a.count(4)) #counts how many times it occur
print(a.index(3)) #show the position of value

# ## Tuple Update

# x = ("apple","banana","cherry")
# y = list(x)
# y[1] = "kiwi"
# x = tuple(y)
# print(x)

##  join two tuples

# tuple1 = ("a","b","c")
# tuple2 = (1,2,3)
# tuple3 = tuple1+tuple2
# print(tuple3)

##Multiply Tuples

fruits = ("apple","banana","cherry")
fruits = (2,4,6)
mytuple = fruits * 2
print(mytuple)  #print 2 times of tuple ..

##sum a list
a = [4 , 6 , 8 , 10]
print(a[0] + a[1] + a[2 + a[2])
print(sum(a))

b = (7,6,5,[1,3,5])
print(b)
print(b.count(0))
print(type(b))
