 Hi everyone, in this tutorial, we're going to talk about multi-dimensional lists in Python and particularly, we're going to talk about two-dimensional lists. But first, I'm gonna say few words about lists in Python. For example, let's say that we have a list of five integer numbers in Python. Let's call it my list and let's populate it with a few integer numbers. I'm gonna do that also in my Python IDLE. I'm gonna use the exact same numbers. And as you can see, this my list list is an ordinary list in Python and an ordinary list like this one is one-dimensional list. So we can represent this list as one dimension or one row. This list has elements 3, 1, 4, 1, 5. It has five elements and the index of the first element is 0, the index of the second one is 1 and so on. So starting index is 0, don't get confused with working with elements of a list in Python. And now we're going to give an answer to the main question of this video and that's how to create a two-dimensional list in Python. In order to do that first, we need to see what a two-dimensional list is. A two-dimensional list in Python is represented as a list of lists. Also we can say that two-dimensional list in Python can be represented as lists within lists. In the previous example, we had an ordinary one-dimensional list, which can be represented as one row, but in the case of multi-dimensional list inside of putting numbers inside our list, we're going to put new lists within that list. So in this example, we've created one two-dimensional list and within our list, we have two lists of three elements. I'm going to type that in my Python IDLE. Two-dimensional list has a list and within this list, we have two lists with three elements. First list has elements 3, 1, 4 and second list has elements Y, 1, 5, 9. We can say for this two-dimensional list that it has format 2 times 3. That means that within this list, we have two lists with three elements in each list. And this two-dimensional list has two dimensions. The first dimension can be represented by rows. We have two rows inside this list. Each row is a separate list within a list. And the second dimension of our two-dimensional list is column. We have three columns in this example. Each column represents one element inside this list. This our two-dimensional list has format 2 times 3 and we can represent it. And we can think of it same as that we have a table of format 2 times 3 or same as we have matrix with format 2 times 3. Now let's solve few simple examples. First example is how to get the second element of the first list of our two-dimensional list. So we want to get the second element of our first list. First list in our case has index 0 and the second element within it has index 1. So if we want to get this element, we're going to call our variable which represents two-dimensional list. In first brackets, we're going to put the index of the row. And in the second brackets, we're going to put the column of our element. So I want to type that in Python IDLE. And let me see, did we get this element? Yes, we get it. Now we have a second example, how for example to get the third element of the second list, we need to get the third element of the second list. The index of second list is number 1 and index of the third element within our second list is represented by index 2. Let's try to type that code again in our Python IDLE. We want to get the second list which has index 1 and the third element within it which has index 2. And we get number 9 as the result. Then let's see in a simple example how to change an element of our two-dimensional list. For example, how to change the first element of the second list. We want to change the first element of the second list. Second list has index 1 and first element of our list has index 0. We want to change that value with some new value in this example with number 8. So we're going to get the element from our position and we're going to change it with some new value. I'm gonna type this example in our Python IDLE. So we're going to change the first element of the second list with number 8 and now simply I just want to call it to see its value and now its value is number 8. In this short lesson we've talked about two-dimensional lists in Python. Thanks for watching and don't forget to subscribe to my channel. See you in the next video.