Python Foundations · Unit 4
Unit 4: Data Structures
Store and organise data in lists, dictionaries, sets and tuples.
Lessons
- Introduction to Data StructuresWhat data structures are, why they matter, types of data structures, when to use each
- Lists and List OperationsCreating lists, list methods, common operations, list properties
- Indexing and Slicing ListsIndexing, zero-based indexing, negative indices, slicing
- Nested Lists and 2D StructuresNested lists, 2D structures, accessing elements, looping through nested lists
- Tuples and Immutable DataWhat tuples are, immutability, creating tuples, when to use tuples
- Dictionaries and Key-Value PairsWhat dictionaries are, creating dictionaries, accessing values, modifying dictionaries
- Dictionary Methods and IterationDictionary methods, iterating through dictionaries, checking for keys
- Sets and Unique CollectionsWhat sets are, creating sets, set operations, when to use sets
- Copying and Comparing Data StructuresShallow copying, deep copying, equality vs identity, comparing structures
- Choosing the Right Data StructureChoosing lists, choosing tuples, choosing dictionaries, choosing sets
-
Take the Unit 4 test
End of unit test
Ten multiple choice questions worth 7 points each and one free response problem worth 30, so 100 in total. Score 70 or more to finish Unit 4 and unlock Unit 5.