First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 7 years ago

B r u n o gravatar image

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.