index() :
Get the index of the given value. If same value is present multiple times, it returns the first occuring index.
Python
letters = ("a", "b", "c") print(letters.index("b")) #output 1count() :
Counts the number of occurences of a given value.
Python
nums = (1, 2, 2, 3, 2) print(nums.count(2)) #output 3