 Hi everyone, in this tutorial we're going to talk about that how to get the last item in the list in Python language. Suppose that we have list 1 with elements 5, 4, 1, 3 and 2, it's obvious that our list 1 has 5 elements. Also we need to know the fact that in Python indexing starts at 0, so if we want to get the first element of our list, we're going to use 0 as the index and if we want to get the second element we're going to use as the index number 1 and so on. So in our case if we want to get the last element of our list, we're going to use number 4 as the index. So in this case if we want to get the last element of our list, we need to know the number of elements in our list and we need to subtract that number with number 1. So here we have 5 elements, 5 minus 1 is going to give us number 4, which is going to be the index of our last element. On the other hand, we can use the other approach and that is that we can watch this list in opposite direction. If we're watching this list in opposite direction, the last element of our list has index minus 1 and similarly the first element is going to have index in this case minus 5. When we're going in the opposite direction, you can notice that our indexation starts with negative numbers. So if you want to get the last element of your list, this approach with using minus 1 as the index is better. In Python Idol, I'm gonna type this code. First, I'm gonna create a list with these elements 5, 4, 1, 3 and 2 and then I'm gonna access the last element of our list by using the index minus 1 and in this case that is number 2 and similarly we can get this last element by using index 4 in this example. Okay, with index minus 1, we can always access to the last element of a list. My suggestion is that it's better to use index minus 1 to get the last element of the list. In this tutorial, we've talked about how to get the last item in a list in Python. Don't forget to subscribe to our channel. See you in the next video.