Lesson 1 of 12
These resources were made for remote use during the pandemic, not classroom teaching.
Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.
Lesson details
Key learning points
- In this lesson, we will be introduced 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. We will be shown how to use a dictionary as a record before creating a 'database' using dictionaries within a list.
Licence
This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.
5 Questions
Q1.A program has been started for a battleship style game. A battleship is represented by a B. Which indices are required to reveal the battleship?
A program has been started for a battleship style game. A battleship is represented by a B. Which indices are required to reveal the battleship?

[1][1]
[2][3]
[3][2]
Q2.What data structure is being used to create the battleboard?
What data structure is being used to create the battleboard?

A dictionary
A list
A record
Q3.Which arrow points towards the entity?
Which arrow points towards the entity?

B
C
Q4.Which arrow points towards the data?
Which arrow points towards the data?

A
B
Q5.Which arrow points towards the entities?
Which arrow points towards the entities?

A
C