Get index of value

a = [A,B,C,D]

I’m searching the index of C. Thus,

C_Index = 2

How?

Here is a few ways.

Some more complicated than others haha

Hope it helps

3 Likes