Methods of Python Tuple
count(item):
Description: Returns the number of occurrences of the specified item in the tuple.
Example:
tup = (1, 2, 2, 3)
count = [Link](2) # 2
index(item, start=0, end=len(tup)):
Description: Returns the index of the first occurrence of the specified item.
Example:
tup = (1, 2, 3)
index = [Link](2) # 1