pylist ( pylist ( pylist (cfigure inserting an item into list(athe array elements are shifted to the right one at timetraversing from right to left(bthe new value is then inserted into the array at the given position(cthe result after inserting the item removing items an item can be removed from any position within the list using the pop(method consider the following code segmentwhich removes both the first and last items from the sample listpylist pop pylist pop(remove the first item remove the last item the first statement removes the first item from the list after the item is removedtypically by setting the reference variable to nonethe items following it within the array are shifted downfrom left to rightto close the gap finallythe length of the list is decremented to reflect the smaller size figure on the next page illustrates the process of removing the first item from the sample list the second pop(operation in the example code removes the last item from the list since there are no items following the last onethe only operations required are to remove the item and decrement the size of the list after removing an item from the listthe size of the array may be reduced using technique similar to that for expansion this reduction occurs when the number of available slots in the internal array falls below certain threshold for examplewhen more than half of the array elements are emptythe size of the array may be cut in half list slice slicing is an operation that creates new list consisting of contiguous subset of elements from the original list the original list is not modified by this operation insteadreferences to the corresponding elements are copied and stored in the