I have the following list:
lista = [ 'A','B','C','D']
I want to count the number of elements to a certain point, I know that if you do len(lista)
it will count all the elements but what I want is for example until C it will give me the number 3.