Nice work going through that section on data structures that's going to be one of the largest sections of this entire course. And now we're going to switch it up a little bit and now we're going to talk about loops.
In this section on Python loops we are going to walk through how we can iterate over collections of data inside of our Python programs and in this guide we're going to take a look at three key types of data structures that we can loop through and we're going to utilize the same type of looping mechanism for each one of them.
This is going to be a quick guide where we walk through how we can extend our knowledge of looping in python and we see that the for in loop can also be used with strings.
So far in this section on loops in Python, we've talked about how we could loop through a collection of data such as a tuple a list or a dictionary. And we also saw how we could treat a string like a collection of characters and iterate through that collection.
So far in this section on Python loops each time that we've implemented a for-in loop the loop has gone from the beginning of the collection all the way to the end and in many cases that is exactly the behavior that you would want.
So far in this section on Python loops, we exclusively worked with the for-in loop type and that is probably one of the most popular options and you're most likely going to be using it for the majority of your own Python programs.
In this guide, we're going to extend our knowledge of the for-in loop to see how it can be used to merge multiple lists.
Very nice work on going through this section on Python loops so far. In this guide, I have to give you warning that this is going to be one of the most complex topics and most advanced concepts that we have spoken about throughout this entire course.
devCamp does not support ancient browsers.
Install a modern version for best experience.