May 2019
Beginner
544 pages
13h 12m
English

In Chapter 3 you learned how to make a simple list, and you learned to work with the individual elements in a list. In this chapter you’ll learn how to loop through an entire list using just a few lines of code regardless of how long the list is. Looping allows you to take the same action, or set of actions, with every item in a list. As a result, you’ll be able to work efficiently with lists of any length, including those with thousands or even millions of items.
You’ll often want to run through all entries in a list, performing the same task with each item. For example, in a game you might want ...
Read now
Unlock full access