First time here? Check out the FAQ!
answered 7 years ago
You can use v.index(a) to get the index of the first occurrence of a. An exception is raised if a is not in v.
v.index(a)
a
v