Year 11
These resources will be removed by end of Summer Term 2025.
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 the data structures: arrays and lists. We will then define them and explain the differences between the two. We will then focus on lists in Python. We will use lists to create a 'Simon says...' game, which randomly selects instructions from a list of items.
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.
Loading...
3 Questions
Q1.
What will be the output of print, when this program is executed?
A single number
A single random lowercase letter
random_character
Q2.
What will be the output of print, when this program is executed?
11
8
Error
Q3.
What will be the output of print, when this program is executed?
1 11 16
2
Error
4 Questions
Q1.
What will be the output of print, when this program is executed?
house, mountain
mountain
u
Q2.
Is an array static or dynamic?
Dynamic
Q3.
Is a list static or dynamic?
Static
Q4.
What will be the output of print, when this program is executed?
Days
Monday
Sunday