In this video, we are discussing Python, that is implementation.
That is a fundamental part of most programming languages, and it is the collection of elements of the
same derivate as example, you can go for ATF and the ATF strings and so on.
So here we are having the methods which will be operated on.
This is and here we are having the respective functions and descriptions.
So happened to add element to the end of the list, extend to extend all elements of a list to another
list.
But having this insert to insert an element at the end of that index given so remove to remove an element
from the list so pop to remove elements return element at the given index.
So that means in case of pop to remove elements and return that element which has been removed from
the given index we had having clear to remove all elements from the list.
So the list will become empty, that it will become empty.
Next one is the next one is the index to return the index of the first MEST element.
So that is useful for the Suchi when having this count to count the number of elements passed to an
argument.
So next one is our shot to shot the elements in the ascending order by default.
Next one is the reverse to reverse order elements in a list.
So the order of elements, whatever will be there.
Initially that will be reversed in the application of this reverse method.
Next one is a copy to return a copy of the elements in a list.
So these are the different methods and the respective functions we have discussed.
So I think it would be better if you go for a demonstration there will be executing our python codes
to show you that how this edit can be used in Python programming.
It is our fundamental part of most programming languages and it is the collection of elements of a single
data type.
And as example, we can consider adding elements like string array of integers at a float and so on.
However, in Python there is no native added data structure.
So you use Python list instead of an array.
But if you want to create a real add a real Addie's in about Python, we need to use the numpties,
adding that is a data structure.
We are having a number by model.
So for mathematical problems, non-pay, it would be more efficient.
So unlike ADD is a single list can store elements of any data types and does everything and add it does
so we can store an integer, a float and a string instead of the insta inside the same list so it is
more flexible to work with.
So let us go for the added descriptions and the detailing about this add handling and we are going to
discuss how to create one edit in our python.
So here we have defined one Eddie so definition and declaring an array.
So these are the set of elements it is having and print error.
So it will produce output like this one.
So now if I want to access our edit elements, we can use the index.
The first element will have to index zero.
So a will print, then everyone will print twenty here.
So error two will print thirty here and here.
We are having this error minus one.
That means that last element will be printed.
That is our fifty but having this error minus two.
So that is minus one.
That is my minus two.
So 40 will get printed.
So here we are using negative indexing.
So now let us go for another edit here.
So here it all dismembers.
All this add elements are of the type string.
So if we print this brands, we're getting the output like this one.
So finding the length of the edit, we are having the method that is the inbuilt method that is our
line here.
So Lindgren's so it will print it to return five here because we are having one, two, three, four,
five elements.
So if you print a number of brands, we are getting here five as Upwood.
We could also add some element using that method append.
So Branstad append intel.
So if we go on printing Brandts, I'm getting this intel as a last element which has got appended to
the existing edit that is of a branch.
So now how to remove elements from and adding so to remove elements without having that method like
remove.
We are having the method like pop.
So here we can find that we are having this color.
It is different there.
So let me bring the colors here.
So long for preened.
Colors.
OK, so now if I print these colors, this particular area, we're getting the outcome like this one.
So that is where the colors are printed.
So now if you go for this colorful if you go for this deal, colorful, then after reviewing this colorful,
if I print that, the outcome will be this one.
So that is a colorful means where having the zero one, two, three, four so yellow will get deleted
because here we have mentioned the index as four.
So now we are having this color blue.
So here I'm just mentioning directly their respective data items.
So here we are mentioning that the data item, so that is a blue.
So blue is the member of this particular area.
So blue is going to get deleted.
So you can find that the blue has got deleted here.
So now we are having these colors, pop three.
So now here we are mentioning that radically.
The index we are mentioning.
So you can find here there is zero one, two, three.
So Orange will get deleted.
And in this way, I'm getting the reduced number of elements of this ad getting printed using print
colors.
So in this way, we can remove items from promenading.
So now we are going for this, modifying elements of an array using indexing.
So fruits, apples, banana, mango, grapes and orange and having this one so fuks one.
So I'm just assigning pineapple to that.
Now what is outcome.
So let me go for the print.
So now let me go for the execution, you can find that at first this particular alley has got printed.
Now Pruett's one one mince.
021 So Banana will be replaced by pineapple.
So it really does got replaced now fruits minus one, minus one means the orange.
The last one will get replaced by this guava.
So we are getting the updated content of this added fruits.
So now we are going for the concatenation of two that is using the plant operator.
So concat is equal to one, two, three and then concat, plus four, five, six.
So now we are going to print concat.
So now let me go for the printing here also.
So if I go on executing, we can find that at first we are having this one, two, three, and then
after concatenation I'm getting this one, two, three.
Why?
Because I didn't assign this concat.
I didn't assign this this concatenated items in there that is available.
So little letters write this one.
So let me do some changes here.
So now if I can find that so now this concat has got updated by concat plus four, five, six.
So this is actually denuding the operator to do the concatenation between two errors.
So now when you are printing this concatenated at we we're getting this one, two, three, four, five,
six.
So now we are going for the repeating elements in an array.
So let us go for this.
Repeated and repeated Ziegel to repeat staff five and then print repeat.
So now what is the outcome?
We can go for this print.
So just executing the same.
So that was is there a next time repeat is the goal to repeal Starfire?
So this has got to be dead for five times.
OK, so now we are having this this.
So we're having the set of elements are there.
So if I go on executing this, so at first we are getting this through, this particular area has got
print it now, print one colon for all of us.
Remember, the starting index will be inclusive and the ending index will be exclusive.
So that is the index number.
Index number one is this one.
So one, two, three.
So I'm expecting banana mango and should get printed is they have got printed accordingly here.
The starting index is missing, so it will be considered a zero.
So from Apple so tremendous.
It will push it up to the index number two because three will be exclusive.
So zero one two.
So apple, banana and mango should get extracted and should get printed.
Apple, banana, mango have got printed.
So now it will start from this minus four.
It will start from this minus four.
So minus one, minus two, minus three.
And here we are having this minus four.
And the ending index has not been mentioned.
So it will go printing up to the last element.
So banana, mango, grapes and orange, they have got printed.
So here we are having this minus minus three, minus one.
So minus one, minus two, minus three.
I'm getting here mango and minus one will be all is exclusive because it is the stop index.
So that's why it will print up to minus two.
That is our grapes.
So in this way we can have the slicing of an eddy.
OK, so now we are going for the next one.
So here we are going to have our multidimensional Eddie so Ingersol multidimensional Larry, you going
to find out where we are defining one, Eddie.
So here's the first element is another that that is going to consisting of one and two.
The second element is also is another area consisting of three and four and so on.
So if you go into this multidimensional edit, you are getting the outcome like this.
But if you bring this multidimensional zairo, that means this one to this one to this add, it will
get printed accordingly.
Three means zero.
One, two, three to the seven and eight will get printed.
So multidimensional array to one, so two and one, they are included within the square brackets individually.
So two zero one two.
So two means this one and one means zero one.
So six will get printed similarly for three comma zero.
So in case of three and they are individually enclosed within the square brackets.
So zero, one, two, three.
That means this particular element and it's a 081.
So seven will get printed here.
So in this way you have shown that how to handle Ediz in about Python programming with demonstration
and example.
Thanks for watching this video.