English
Topic 5. Built-in collections: lists, tuples, sets, dictionaries, and the collections module
Goal: learn to choose collections for practical problems, process nested lists and dictionaries, perform set operations, use Counter, defaultdict, and deque, and verify correct copying and handling of empty data.
Lecture contents
- Sequences and lists — Why collections are useful · Sequences: indices and slices · Modifying lists and ordering
- Comprehensions and tuples — Comprehensions and two-dimensional lists · Tuples and unpacking
- Sets and dictionaries — Sets and hashability · Dictionaries: keys, values, and iteration
- The collections module and choosing a structure — Specialized standard library collections · Choosing a structure and operation costs
- Program examples and common mistakes — Program examples · Common mistakes and checking a solution