Skip to content

Study Hub

Study Guides

This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.

Year 11 - Computing

Records and dictionaries

Programming: dictionaries and data files

Unit Summary

This unit introduces pupils to the new data structures of records and dictionaries. They will develop a Caesar cipher encryption program using a dictionary as a cipher wheel. Pupils will explore how data can be read from and written to files and how this data can be used within a program.

Lesson Summary

You will learn to create a record using a dictionary in Python.

Key Notes

  • Data structures are used to store data in an organised and accessible way.
  • A record is an example of a data structure.
  • A record allows you to store a collection of attributes for a single entity.
  • Python does not have a native data structure for a record.
  • Instead, you can use a different data structure called a dictionary to represent a record.

Vocabulary To Learn

  • record: a collection of attributes for a single entity
  • entity: an entity is a single object, place, person or thing
  • attribute: properties or characteristics of an entity
  • dictionary: a data structure that involves creating data pairings that can be located using a key
  • key: used to identify each attribute held in the dictionary

Common Mistakes To Avoid

  • There is no way to store multiple records in one data structure in Python.

3 Quick Questions (With Answers)

1. Describe the system or process from this lesson in clear steps.

Data structures are used to store data in an organised and accessible way. A record is an example of a data structure.

2. Define this computing term and give one practical example. 'record'

a collection of attributes for a single entity. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: There is no way to store multiple records in one data structure in Python. Correction: If you want to use multiple records in a database, then you can add multiple dictionaries to a list.

More Lessons In This Unit

Browse all guides in the Year 11 Computing guide library.