Lonnie Princehouse wrote: > everybody is making this way more complicated than it needs to be. > > storage = list[:list.index(O)]
the question is whether the old list is needed in the future or not if not then it would be easer/mor efficient to use del lst[lst.index(0):] Regards, Daniel -- http://mail.python.org/mailman/listinfo/python-list