Module 5
Data collections
list, dict, set
When you finish this module you can say:
I can hold and process many pieces of data in lists, dicts, and sets.
By the end of this module you'll be able to write a program that splits a text into words, counts how many times each one appears, and finds the most frequent one.
StartLessons
11 lessons · ≈ 107 min
- Lists and indexing9 min
- Slicing8 min
- Changing a list12 min
- Looping over a list, and enumerate9 min
- Building a list in one line9 min
- Tuples and zip9 min
- Dictionaries10 min
- Looping over a dictionary10 min
- Set: a collection with no repeats8 min
- Same object, or a copy?11 min
- Project: Word counter12 min · project
Practice exercises
Short writing exercises, independent of the lessons: Go to the exercises