GCSE – Lesson 36 – Records and dictionaries
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.
- 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
- Lesson plans
- Slide decks
- Learner resources
Don't have an account?
Enjoyed teaching these lessons? Found a mistake?
Fill in a short form to give feedback on these resources.