Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Arrays and Records

Records

301.17 Arrays and Records

Practise exam questions

Arrays and Records — Note 4 of 4

Group fields together.

What you need to know

A record groups related fields together. In Python, dictionaries serve as records — each field has a key and a value (e.g. student["name"]).

What to know

  • Dictionary: student = {"name": "Alice", "age": 15}
  • Access: student["name"] → "Alice"
  • Modify: student["age"] = 16
  • Each key must be unique
  • Can store a list of records for multiple entries

Code examples

Records with dictionaries
python
student = {
    "name": "Alice",
    "age": 15,
    "score": 87
}
print(student["name"])   # Alice
student["score"] = 92    # Update
← Previous noteArrays in subprograms301.17 Arrays and RecordsNext topic →Editor usage301.18 IDE Skills

Back to Arrays and Records

Specification notes for programming are in Paper 2.

Arrays and Records

Note 4 of 4

  1. 11D arrays
  2. 22D arrays
  3. 3Arrays in subprograms
  4. 4Records
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).