© Connor P. Milliken 2020
C. P. MillikenPython Projects for Beginnershttps://doi.org/10.1007/978-1-4842-5355-7_4

4. Lists and Loops

Connor P. Milliken1 
(1)
Derry, NH, USA
 

Throughout this week, I’ll be introducing a new data type called “lists” and a new concept called “loops.” Lists will give us the ability to store large sets of data, while loops will allow us to rerun sections of our code.

These two topics are being introduced together because lists work well with loops. Even though lists are one of the most important data types in Python, we needed to understand the basics of data types and branching statements before introducing them. By the end of the week, we’ll have the tools necessary to build a small-scale hangman game. We’ll use all the ...

Get Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.