#!/usr/local/bin/python2 l = [0,1,2,3,4,5] for i, e in enumerate(l): if e == 3: del l[i + 1:] print i, e print l