But this is this is not a not a very efficient way of doing it.
You know why.
Because this is the sequel to seeing something like this except to OK.
Let me start in a variable.
Let me call it a step.
Right.
So this is available this template template and teme all 10.
So if I just print print up 10 if I print up tempo.
Well you can get us this particular way.
Now I want to access an element in that.
So I will say Temple 10 bucks to once again.
OK.
And then this will give me 50.
So you have four temples to you know if I now print or if I store it in something like a.
And if I print they finally you get the value 50.
But as you can see there is a particular temporary variable in being created when I do X of two.
So when X of two is nothing but you're creating attempt to be readable and from that Temperley from
the temporary numpad you are indexing the seconder.
It's not very efficient.
It causes it causes problems in the memory as well as time efficiency rather not by provides you a better
way by saying instead of saying X of two and two it says just index it in this manner in this way.
I do not create a temporary variable.
I directly figured out for you what is of value and that's how I get that.
Hope you're able to understand that.
Right.
So here we have.
So this is the very sorry this is this one is the three for now.
I can just print that out once again and then try and index it once.
OK so this is the Army and I need to index it in such a way so if I say X of letter X of minus one what
is that going to be.
That's going to be the last 45 for 45 58 59 40.
Now if I say X minus 1 and if I say I won.
I won.
The third element in that is the rally going to be.
This is zero.
This is one this is two.
This is three.
So it is going to be 50.
So this is how a index a particular value which is there in particular.
Now by adding hope you're able to want to go.
So with this particular you know understanding this numpad.
And you know why this particular indexing I can also index the last element by saying X of minus 1 come
on minus one day or you have 40.
So or you can also say X or 1 Come on minus 1.
What is that 90.
Because this is the first draw and the last column in that minus one.
If I say minus two that's going to be the 45 to you.
Why.
Because minus one is the Index which comes.
So this is the next of each of these columns are going to be 0 1 2 3 4 5.
And the reverse index from the end.
This is minus one.
This is my stews minus 3 minus 4 minus 5 minus.
Right.
So this is the way the entire indexing works in.
By adding right now along with indexing.
There is a second thing that we need to see and that's all about we can what we can do is let's say
indexing after indexing we say the next thing that I was told you that I will cover is slicing right.
Is also a very beautiful concept in in what Titan or not pi has introduced it's it's quite amazing to
figure out how things work that way.
So first of all get printed and then let's analyze so slicing is nothing but you know cutting for pop
or Sluys take a slice out of this out.
Let's say for example I just want to slice this portion where.
No sorry.
I wanted this 45 78 15 and 18 I just want to slice this portion OK.
So basically it's going to be a box or rectangle that it can be something like this you can slice something
like this because there's nothing and get this box or rectangle but of course you can slice this much.
OK.
Or you know you can slice Yes but you can slice this.
This is not allowed.
You can slice portions of it.
So how do you slice it.
OK.
Slicing is done with the operator called as a call and OPERATOR OK you have a colon operator which can
be or a slicing operator.
It is on the colon and we can do that very well with.
Oh good you know by slicing it by saying.
Let's say for example let's do it first of all four for us you know let's do it from one first so that
you'll be more comfortable understanding slicing over there and then slicing it slicing with the audio
too.
So let's say you have one come up to come three come to four come of fives.
Oh sorry.
Let me non-sport let's not put numbers like this so that you don't get confused.
Great call.
So now if I say Why of course I can just access it by saying why are five what is why a five that's
to what is 5 0 1 2 3 4 and 5.
So that's true.
So why if I but if I want to slice something like For example I want to say while I want to say y off
and I want to get this much Boeotian for five to I just want to slice this much.
So for what is the element what is the next number of 4 0 1 2 and 4 3.
So I can say why a three Colin and go up to go to elementary This is four there's five.
Now if I put five in on what will happen that is going to be it is just going to return to you for KAMAHL
fight you this much.
Why.
Because this one is exclusive.
This one is inclusive.
So all I need to see here is why.
All I need to make it out with are three Colin Six Day.
We have so because six is exclusive I get it up to two.
Right.
So this is about slicing.
Now if I don't put the first element if I just put Colin 6 it starts from the zero element and goes
up to the sixth element.
All right.
Now if I put instead of say Colin six I would say you know I start from three but instead of saying
Colin six I just put a call in.
That's it.
It will go from the turtle.
That is from four and reported last the last seven.
So it is about how slicing works it slices up bits and pieces of the Arey and gives you back what you
require.
Right so that's parts lazying when it comes to a one the arey.
Now let's see how slicing will work when it comes to Turia.
So this is about X and to rearrange.
How will it work.
So this is the one.
This is the two Jaedicke correct.
How will this work in Italy.
I'll have something like these x's.
It's this slicing.
So I told you I can give though rule number first.
So if I say two comma after the comma comes the column number.
So I can say to come a five but now if I want a range of numbers I want to slice a range of numbers.
Let's see I won the first two on words I wanted from this particular roll from the first four.
Basically I want these four elements for 578 15 and so I want to slice these four elements.
I want this four elements finally.
So I won the first trial and the second all I need which columns 0 1 2 3 I want the second column and
the third column so second and third column and the first and second row.
Now what I see one call and make two or three because it is exclusive.
You need to say three and then this will be what I won the second Yeah I won second and third.
So I go second.
I say three or four.
And for the last 45 78 59.
So again this is nothing but a modern umpire.
As you can see so I have sliced up a piece of the artery and I have got it for you.
So that's how you slice up an umpire.
And you can figure out multiple things that can be done with slicing up with an idea.
Right.
Let's check out some more things that can be done instead of saying one call and three.
What if I say call and it will happen.
It will start from the starting rule and go up to.
Not to you but to go up two to three minus one because this is exclusive to two.
So it came up to this one two three but columns are going to force.
It means two and three.
Not the fourth one two entries so this came up 15 12:45 is 78 15 now instead of instead of saying that
if I had said one colon and if I remove the three out here what would have happened.
It would have started from here or from here it was not from the rolls.
These would have been the rules what if I-78 15:18 for the 5:58.
All right what if I put something like this.
OK.
So that's about one.
OK.
What if I don't put anything.
I just put a call and all happen.
It will select all the rules from start to end.
OK.
That's that's a huge feature about this.
OK so can I do that with the column Stu.
OK.
So let me say calm cool and full it will start from the first and go up to the Third Reich.
So 0 1 2 and 3.
So you go up to three because for is exclusive.
OK.
But start from start from all of there.
Right.
And if I put a value here two and interval four I just put it up here.
It will start from here and go up to the end because all rules are included but columns are from the
second column and two is inclusive.
Correct.
If I finally don't put anything just put color and it'll return to me the entire areas.
Correct.
OK.
Now what if there is some more addition to slicing and I hope you're going to enjoy this hugely and
let's say I begin with the first element got to the last element but I won.
In a particular step size.
What white.
I can slice with a particular step size.
Let's have the.