Please don't forget to subscribe to my channel Thank you very much.
After watching this video and content you will never fail in python slicing operation. There are three types of slicing operations available. Once you are aware that your work goes very simple.
This type is very simple and it contains only one index number. This number is either a positive number or negative. This number is nothing but the position of the element. You don't need to concentrate on the directions.
This type has two index positions. The first position represents the starting point of the index and the second one shows the ending point of the index. We should always take the elements in a positive direction only. Positive direction means left to right direction only.
Note: If the endpoint is given, then we should delete the element value at that index position.
This type is a little bit tough to understand. But if you understand the directions then it becomes very easy for you. There are three index values are given. The first one shows the starting point, the second one shows the ending point and the third one shows the steps. The first two index positions behave like type-2. But the last number is very important in this type-3. If the last number is positive then it indicates, take the elements from left to right. If the number is negative then it takes elements from right to left. If the number is 2 then jump 2 steps and repeat the process until we reach the end position.