Hello in this video we are going to expand our knowledge on lifts. So we covered list briefly in the different variable types. Let's just simply create a list here so we're going to call it list lawn and unless you know our variable string Okay, so we have this write down we can print this off you know, print this number one we could print a specific, you know value from the list by doing this number marijuana. We wanted the third value Everything starts at zero. And you can print off, you know, multiple sets as well something like listening for the zero column column for your cover, you know, printer D zero to the full list of items. And you know, we covered that in the string video previously, so and in the variable type videos, feel free to go and check that out for more information if you run this.
So so far, this should all seem familiar, we've done all of this sort of stuff before we enter. Full stop there. So if we rerun this yet, so we get the value for free when we print out the first line, okay, so why do we want to update our value so if we want to update the first one, first of all, let's just print at fair value first, and then we will update it and print it out. Again, to show you this being dated to update it. You just do. Lift Why, and specify what particular index you want to update the value at zero for me, because now we put Bob and therefore copy this before we're gonna see what we get.
There we go. And so one initially and then he gets into bot mode thinking how do we delete a list item, very simple as well. So this is okay. So let's delete one. We copy that so you can see what it looks like before we've deleted it. And if I do do a show for delete, now if I put this number one so the name of the list, and now which one we want to delete, so if I want to delete the second one, put one print this out again.
Go Back, click Run, scroll down, as you can see, it has number two is no longer there because it's been deleted a second value have been deleted from it. And one was Bob, because we updated it right here and those changes still persisted. So let's take a look at, you know, list operations. Again, as I've said in other videos, so many money just going to cover you know, one or two, but you can see all the others in a link that I provide the basic lift operations for one operation you can do is to check the length of the list. So how many, you know, elements that are having pieces of information, so you just print and put earlier and now you specify the list so list number one, and click Run. As you can see, say 70s One, two 3456 some would have been eight if we have placed it before the Delete line.
So the lamb method is a built in list method that provides the total lamp and a bunch of other methods like Max, which returns you know, from the listing max value that obviously a minimum one, you can convert a tuple into a list using the list method as well as one for appending objects to the list for inserting objects. There's a whole heap of stuff that also stuff for indexing, slicing and you the matrix matrices for lists. And like I said, I'll provide a link in the description. So you can now cover all of the extras, but it's essentially just what we've already covered. A few extra nuances. So you understand in what in this video, you're good to go with lists in Python.
Thanks for watching, and I look forward to seeing you in the next video.