Year 11
Arrays and lists
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?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707208327%2Fmscurapwzqmv6yrvh0y1.png&w=1920&q=75)
A single number
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](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707208332%2Fl5mt9fpndor2jqa0gfns.png&w=1920&q=75)
11
8
Error
Q3.
What will be the output of print, when this program is executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707208337%2Fgvcgwetmvnws9nywptbv.png&w=1920&q=75)
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](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707169047%2Fqfhw2bdf9o12oevffsn2.png&w=1920&q=75)
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?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707169055%2Fmzfeziell94i4zagoqvx.png&w=1920&q=75)
Days
Monday
Sunday