Year 11

Arrays and lists

Year 11

Arrays and lists

warning

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

  1. 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?
An image in a quiz
A single number
Correct answer: A single random capital letter
A single random lowercase letter
random_character
Q2.
What will be the output of print, when this program is executed?
An image in a quiz
Correct answer: 10
11
8
Error
Q3.
What will be the output of print, when this program is executed?
An image in a quiz
Correct answer: 1
1 11 16
2
Error

4 Questions

Q1.
What will be the output of print, when this program is executed?
An image in a quiz
house, mountain
mountain
Correct answer: sheep
u
Q2.
Is an array static or dynamic?
Dynamic
Correct answer: Static
Q3.
Is a list static or dynamic?
Correct answer: Dynamic
Static
Q4.
What will be the output of print, when this program is executed?
An image in a quiz
Days
Correct answer: IndexError
Monday
Sunday