Is there a simple way to index all elements of a list (or array, or whatever) except for a particular index? E.g.,
mylist[3]
If you don't know the index beforehand here is a function that will work
def reverse_index(l, index): try: l.pop(index) return l except IndexError: return False