OCR GCSE Computer Science · J277
Paper 2
Revise: Using Records to Store DataA Python dictionary is one way to represent a record. A dictionary stores pairs: a key and its associated value. When modelling a record, each key acts as a field name.
Loading…
GCSE Computer Science · key term
A data structure that stores key–value pairs. A Python dictionary can represent a record, with keys acting as field names.
Used by OCR
Paper 2
Revise: Using Records to Store DataA Python dictionary is one way to represent a record. A dictionary stores pairs: a key and its associated value. When modelling a record, each key acts as a field name.
In Python, use the dictionary key to access or update a field. String keys need quotation marks, and their spelling must match.
Create a free account to read GCSE Computer Science revision notes for your exam board and track your progress.