GCSE – Lesson 36 – Records and dictionaries

Curriculum KS4 Unit Lesson

This lesson introduces learners to two new data structures. A record and a dictionary. The focus of this lesson is on records and how these can be created and used in Python to form a database. Learners will be shown how to use a dictionary as a record before creating a ‘database’ using dictionaries within a list.

Note: This lesson uses a dictionary to represent a record because the record data structure isn’t available in Python. The standard use of dictionaries will be covered in the next lesson.

Learning objectives

  • Describe the record data structure
  • Use a dictionary to represent a record in a program
  • Use a dictionary with a list to represent records in a database

Package contents

  • Lesson plans
  • Slide decks
  • Learner resources
  • Homework