Lab 4: Iterables¶
Open Lab Notebook in Google Colab
Learning Objectives
Build lists incrementally with
append(), and use other common list methods.Build lists all at once with list comprehension.
Introduce the
setclass for storing unique values and perform fast membership checks.Introduce the
dictclass for storing key-value pairs.Use the
itertoolsmodule to iterate over sequences in specialized ways.
Lab Outline