Python Foundations · Unit 4

Unit 4: Data Structures

Store and organise data in lists, dictionaries, sets and tuples.

  • 2–3 hrs
  • Beginner
  • 10 lessons

Lessons

  1. Introduction to Data StructuresWhat data structures are, why they matter, types of data structures, when to use each 15–20 min
  2. Lists and List OperationsCreating lists, list methods, common operations, list properties 20–25 min
  3. Indexing and Slicing ListsIndexing, zero-based indexing, negative indices, slicing 20–25 min
  4. Nested Lists and 2D StructuresNested lists, 2D structures, accessing elements, looping through nested lists 20–25 min
  5. Tuples and Immutable DataWhat tuples are, immutability, creating tuples, when to use tuples 15–20 min
  6. Dictionaries and Key-Value PairsWhat dictionaries are, creating dictionaries, accessing values, modifying dictionaries 20–25 min
  7. Dictionary Methods and IterationDictionary methods, iterating through dictionaries, checking for keys 20–25 min
  8. Sets and Unique CollectionsWhat sets are, creating sets, set operations, when to use sets 20–25 min
  9. Copying and Comparing Data StructuresShallow copying, deep copying, equality vs identity, comparing structures 20–25 min
  10. Choosing the Right Data StructureChoosing lists, choosing tuples, choosing dictionaries, choosing sets 25–30 min
  11. 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.

    Take the Unit 4 test