Finding first and last index of some value in a list in Python first index: verts.index(value) last index: len(verts)-1-verts[::-1].index(value)