remove an element from a list by index,del a[(-1)]