In the previous section we looked at different methods to input data into our program. In this section we will learn about loops. Loops are a way of iterating over data in a repeatable way. For example in the last section we navigated a JSON structure where the index value in a list was 0. If there are multiple items in the list we can use a loop to repeat some action for each one.

This is a common task, especially when dealing with large amounts of data that you might find stored in JSON files.