Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.