Hi, everyone.
In this lecture, we will learning how to add items in our list.
There are two methods.
The first one is a pain.
The second is insert.
Let's see.
What's the difference between them from the.
Concrete examples as follows.
Okay.
Now we see a paint.
Here we have fruit list, airport, banana, orange and so on.
We want to obtain a cherry to be noticed with a noticeable fruit.
Please.
A pained cherry.
We pray the brutalist.
Let's use our.
I know.
We all knew what.
New found.
Just copy and save the random module.
We save it into a folder.
We caught Lee's.
Ed Meese and in terms.
You see if we compare the new.
At least.
To the previous one.
In fact, the cherry.
Is at end of the previous list.
It means they obtained methods as I turn to the end of the list.
Yeah, to the end.
Let's see how to insert the insert method.
In fact, we insert a new list item at the specific index.
We use the index.
Let's see.
Example, we still use the.
This list released, we insert Terry.
Where we exert.
First.
This is the index.
That's a means at the second position.
Airport is the first thing.
Cherry.
You see, we sort of cherry.
And the second place that's means the uh.
Out the another apple or.
Before they put on their say one.
Terry, it's here to index one.
The first one is zero.
So you sort of always remember for the least index.
The first index is zero.
Okay, then be right.
We just copy this product.
So we sort one cherry or it ready.
Puducherry.
Yeah.
Maybe you still remember for.
Least.
Eight.
The items can be duplicate.
There can be two items.
The same items in wine list.
So we just put another cherry.
Yeah.
After Apple.
Let's just pray.
Maybe I prefer call it.
In search.
Uh, I.
You see, there's a whole terror.
But we insert a way.
Yeah.
After if this one.
Okay.
Basically the lecture.
For the next lecture, we will talk about how to.
And I terms, you know, a couple.
Still they.