Now let's check other important methods like pop the all clear.
Copy and count.
Let's start with Pop.
This method removes the specified index or the last item.
If the index is not specified here we have a list.
Apple banana and cherry.
If we write that pop function takes a zero it will delete the first item in the list which is Apple
down method.
Remove the specified index.
So down this list.
Square brackets.
Zero.
It will delete the first item career method clears or empties all items in the list after that item
will be empty.
We are cooking metals also copying method is copy another list.
You cannot copy a list simply by typing.
List 1 a call to list 2 because this too will only be referenced to list once and changes made.
This one will automatically also be made in list.
So copying can list.
We will use just copy practice
for count method returns to number of elements with specified value.
So here we take count of banana.
How many times these items used in the list.
So output will be 1 Let's take them in by John.
Create our list.
Done less.
Bob
item 0 and print.
When we run it I do 0 is cut to it.
If we just pop on track it will delay the last item
if we write down all these lists scare record too if it will delete the last item which is item 2 or
we can write this list that cleared parenthesis.
There is no I mean list or the list is cleared or empty by clear.
Function
if we check copy.
So now you list a kill list.
That copy parents and print new list.
We Willamette new list is copied by this list and we can also check the count of two items in the list.
So bring this list here.
Let's check in the mail.
And late this this list a kill list that count and one on one time we button if we write here and under
banana item.
Now that will be 2.