In this case, 2 is the starting point and 3 is the interval. Array Slicing in Python with the slice() Method. Good question.Let me explain it. A slice object is used to specify how to slice a sequence. If we don't pass end its considered length of array in that dimension The 1 means to start at second element in the list (note that the slicing index starts at 0). Slicing arrays. We can also define the step, like this: [start:end:step]. Now let's say that we really want the sub-elements 2, 3, and 4 returned in a new list. Here's the Pythonic way of doing things:This returns exactly what we want. Let's start with a normal, everyday list.Nothing crazy, just a normal list with the numbers 1 through 8. What the heck does that syntax mean? After that it takes every third element of the array till the end. Similar to the previous cases, here also the default values of start and stop are 0 and the step is equal to 1. How do we do that?NOT with a for loop, that's how. So the returning array stars from the element in index two. The slice() method in Python returns a sequence of indices ranging from start to stop-1 with the given step value. Say, we don’t need till the end. If we don't pass start its considered 0. Just a quick recap on how slicing works with normal Python lists. The slice() function returns a slice object. In that case we can further slice it. As with indexing, the array you get back when you index or slice a numpy array is a view of the original array. You can specify where to start the slicing, and where to end. It is the same data, just accessed in a different order. 4. We pass slice instead of index like this: [start:end]. We only want to output till -4. slice only every other item. Slicing lists - a recap. You can also specify the step, which allows you to e.g. Slicing in python means taking elements from one given index to another given index. This is different to lists, where a slice returns a completely new list.