 is Mr. Sandesh Pare. I am currently working as an assistant professor in the department of computer science and engineering at Valchan Institute of Technology, Sallapur. And in this session, we are going to focus the list data type in the Python. So, before going to implement this list, we will check what will be the learning outcome. So, at the end of this video, you will be able to perform all the operations related to the list data type. So, let us start to implement the list data type. So, for that, what we will do is that, suppose we will take the list of the numbers. For that, I will use the nums variable and in that, I will give you the list. I will assign the list to this one. And for the list, the square package is used. To denote that, it is the list. And here I will pass the numbers that is 25, let us say 12, any random numbers. So, 36, 95, 14. So, this is my list of the integer numbers. So, yes, it is get created. If you want to check the values of this list, then you just have to specify its name and the output is displayed on the screen. So, square brackets are mandatory to indicate that this is the list. And after that, if you want to perform any operation related to this list one. So, there are techniques. Suppose these numbers are stored in the indexing format. If you want to fetch any one of the number, then you have to pass the index there and it will give you the exact number. And it is starting from the 0. Let us say, nums of 0, it is 25. So, in this fashion, you can use the indexing to fetch, to access any particular number. And you can specify the negative indexing also. Let us say, nums of minus 1. Let us check what is the output. As you can see, the 14 is output. Why? Because whenever you specify the negative index there, it will start traversing from the last one. And it will start from the first one. Minus 0 is not there. So, you will start from the minus 1. And obviously, minus 2 is 95, minus 3 is 36 in this fashion. And instead of this positive and negative indexing number, you can specify the range also in the indexing. So, let us say, nums of, here are 0 to 4 indexing is there. I will say, 2 is the starting index and I want up to the 3. So, as you can see, the output is 36. It will exclude that third index. It will start from the, for your confirmation, we will take one more example. So, nums of, instead of this one, again, 3. So, 12 comma 36. So, the index at the third location, it will get excluded here. That is 95. It will start from the starting index, but it will exclude the last index. After that, we just want to tell you that it is not limited to the integer values only. So, instead of this integer numbers, if you want to give the strings as the items in the list, then you may do it. So, let us implement that one. But before going to that, I just want to tell you that when you specify the range here, when using the indexing, if you did not mention the sum of the number, then it will not create any chaos. For example, nums of. So, I will start from the second index and I will not specify the end of this sublist. So, if you did not specify the end of this sublist, then it will go up to the end of the list. Let us check. As you can see, it will start from the 36 and it will go up to the 14. That is the last item in the list. And in reverse version also, it will work. If you did not specify the starting of the sublist, then it will start from the start by defaulting. Let us check by doing so. Now, I will not mention the starting of this list. I will just tell the end point. Then the value, you can see that it will start from the first, that is 0th index, that is 25, 12 and 36. It will exclude the third index. So, it will end up to the 36. So, now instead of these integer numbers, we will try to give the strings there. I will use the another one list here. So, let us say names and here, I will specify the, suppose ABC is my first string, PQR is my second string, right? And third string is XYZ. So, it will work. No any problem. If you want to check the values, then you just have to pass this number. So, as you can see in the output, the ABC, PQR, XYZ are the values. And it is not mandatory to have all the similar type of data in the list. Let us cross verify this statement. Let us implement the values is equal to, what I will do is that, I will pass the mixture of all the data types. For example, I will say 9.5 and I will say the string Jkl and I will pass one integer l, 25, right? So, see it works. Let us cross verify the contents of the values. You can see it. So, multiple type of data is supported in this one. And one more thing, you can create the list using the list. This statement is very complex, but let us focus on this one. I will say miscellaneous is equal to, so I will use all the numbers and names. Numbers contains only integer values and names contain the string values. So, I will specify here nums comma names. So, see it is creating the error. Why? Because suppose, oh, I will, I provided there curly bracket instead of the square bracket. So, it was my mistake, just names, nums comma names. It should work now. It worked. As you can see, the list is containing the two sub lists there. And I want to tell you one thing that suppose, let us say nums is thought. So, these are various functions which are related to the list is given there. For example, append and close, copy, count, extend. These are some various methods which are provided for the list. You can have a look on that. So, I just want to ask one thing that what is mutability and is the list data type is mutable and why? Just think and answer. So, mutability is the quality in which it allows the programmers to manipulate the particular data. And yes, the list is the mutable data type because programmer can update the values. As you just we have seen that methods in the list. So, what is that methods are? Obviously, this append. You can append the values. You can extend it and you can remove it. It means you can make the changes in the list data type. So, that is why this is the mutable type of the data type. So, let us make a changes there. I will use the first append method here. And I will use the 45 number. So, any random number. So, I will append this number. See it works and I just want to check this nums again. And 45 is get appended at the end as you can see on the screen. And if you want to use one more method that is insert method is also there. So, append is also adding the elements and insert is also adding the elements. But what is the difference between them is that you just pass the number when using the append. But when you use the insert, you have to pass the index number where you want to insert that number. This is the index, second index. I want to add this value and my value is 77. Let us see. So, yes, it worked and I just want to check again the values of the nums. You can see at the second index, the 77 is get inserted. So, in this fashion, you can make the changes in this list. If you want to use the remove method, let us say remove. I just want to remove 36, let us say. I just want to remove this 36. And yes, it worked. And after that, I want to check 36 is removed from this one. And again, instead of the remove, there is one more method that is the pop method, nums.pop. And instead of this number, here in the pop function, you have to specify the index number. So, let us say one. So, yes, it is popped. So, in this fashion, you can make the changes in the list. So, that is why it is called as the mutable type of the data type. So, this makes the list data type different from the other data types. So, these are some references I used to make this video. Thank you.