‫I want to teach you one last thing.
‫When it comes to lists and it's called List Unpacking, and it's a really, really nice feature.
‫I really like it with List and packing.
‫We can do something like this.
‫Let's say I have a list that is while very simple one, two and three.
‫And I want to assign a variable to this list.
‫Let's call it basket equals 1 to 3.
‫But what if I wanted to assign a variable to each item?
‫Well, I can actually do something like this.
‫A, b.
‫C.
‫So that when I print a and then let's print be.
‫And then print C and I click run.
‫I get one, two, three.
‫And this is something that we've seen when we talked about variables where even if it wasn't a list,
‫as long as we gave it by comma, separated by comma, different values, we're able to print.
‫One, two, three.
‫But this is where list unpacking gets really, really useful.
‫We can actually, let's say, extend our list.
‫To include.
‫All the way till nine.
‫What if we wanted to unpack one, two and three?
‫But.
‫But keep everything else still in a list.
‫Could we still do that?
‫Well, with less time packing, we can.
‫All we need to do is say comma and then add a star and give it a variable name.
‫Whatever we like.
‫Let's say other.
‫So now if I print other and I click Run.
‫Look at that.
‫I'm able to unpack my list however way I want.
‫What if I add a comma here and add dx?
‫Well, if I run this.
‫I get a list all the way until eight.
‫But now DH is.
‫Well, actually.
‫The very last item.
‫So that's a very, very neat.
‫Maybe the use case right now is not absolutely clear to you, but this is something that might help
‫you, another tool in your toolbox to unpack a list and change a list in different ways.
‫We'll explore this more later on in this course.
‫But for now, let's unpacking.
‫When you hear that word.
‫Now you know what it means.
‫I'll see you in the next one.
‫Bye bye.