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.
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
Don't have an account?
GCSE revision
A comprehensive range of content and helpful practice questions are also available for this topic.
View on Ada Computer ScienceEnjoyed teaching these lessons? Found a mistake?
Fill in a short form to give feedback on these resources.