 With the introduction of lists. I want to actually go back to our looping control structures Specifically the reason why is because I want to introduce something known as the for loop so before we were only thinking about while loops and They had some Conditional attached to them. Well now that we're dealing with a list if we think about it for just a moment I Can create some number that would allow me to traverse that list So I could for example make an I equals zero while I Is less than seven and then I don't know print Days I'll just shorthand it to days at I I Plus equal or one In congratulations, I now can traverse through my list But the issue is that oh, well I need one two three lines of code Just to traverse through my list or go through every element in my list and so the for loop Kind of shorthand that instead of having three lines Necessary it can condense it down In the what ah look at that nice and to use it again just like every other You know control structure we specify the magic keyword to start For and then we give it some variable or temp Variable name That's only gonna exist while we're in the loop Then we're using another magical keyword called in and then specifically we give it our list Now there are two separate ways that this could operate so you can see I show two different versions here this top version is just going to Grab the element in the list and that's it this second version So let's see grabs garbs grabs element from list grabs index From list And again the big thing here is you may want the index you may want the Element and one of the things I typically do I will say that I do favor this version mostly because I can always access The element in the list in this way so I can still get the element But now I still have the index attached to it and just to see this in action. So The way to think about this is here are the Four different ways that we could or three different ways we could traverse this list the first one Is through the while loop Again, I would have to start with some index and Then go through while that is less than the length of my array Or list and we can generate and calculate out that through Len just like with a string. So Len days And then for our sake, I'll just say print days at I I Plus equals one so again what this is going to do Print the days of the week. Nothing. I am I've shown you What this will do magic But the big thing is again that was just using the while loop. I could also use The for loop I'll call this for loop one and the entire idea here is instead for day in days print day Now what this is going to do is effectively traverse through the list go through the list and Make the element at each index equal to day So again day would be Sunday and Monday and Tuesday and I just want to print them the last version is for loop number two and It's my most popular version. It's how I typically like to work for I in range Lynn days print days at I Now what's going on here just so we can sort of expand out on what we're seeing first off Lynn days Lynn days is going to tell me seven so nothing outlandishly crazy there, but What is Lynn arrange Lynn days? Well, Python is going to just it's going to provide me with some objects But what this object means is it's a range of numbers from zero to seven not including seven And we can actually see this in action if I use this but instead of printing days at I Just print I All right. Well, you can see it's printing zero one two three four five six It's going through and it's made its own little list of numbers zero to seven and I can use this so days at I And so I can now see each way so again there are The big point I'm getting at here is there are multiple ways you can traverse through your list The way you pick is up to you I personally when I'm dealing with it use this version because again I like to have access to my eye my index and the value So I can have both the element and the index at the same time, but That doesn't mean that I don't do this as well. There are times where I don't care about the index I don't need to do things with it so I just Skip over that part entirely and just do printing of every element in the list And then you've got the walups Does the exact same thing? The only difference is I don't have to use three very three lines of code to make my Print statement happen. So each one works