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 want to cut out the last or the first do this:
list = ["This", "is", "a", "list"] listnolast = list[:-1] listnofirst = list[1:]
If you change 1 to 2 the first 2 characters will be removed not the second. Hope this still helps!