can we remove the last elements in array list in pyrhon code example Example: java remove last array element Arrays.copyOf(original, original.length-1)