Lesson details

Key learning points

  1. In this lesson, we will learn about the world of the Sense HAT, a physical device that sits on top of a Raspberry Pi computer and can be used to sense the environment.

Content guidance

  • Equipment requiring safe usage.

Supervision

Adult supervision recommended.

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 method should you use to add something to the end of a list?
add()
Correct answer: append()
insert()
plus()
Q2.
What method should you use to sort a list in ascending order?
ascending()
atoz()
Correct answer: sort()
sort(ascending)
Q3.
True or False: You can return a list from a function
False
Correct answer: True

3 Questions

Q1.
How many Astro Pi's are in space?
1
Correct answer: 2
3
4
Q2.
How many pixels are on the LED matrix?
16
32
Correct answer: 64
8
Q3.
Which code snippet would you use to remove all pixels from the LED matrix?
Correct answer: sense.clear()
sense.delete()
sense.off()
sense.remove()

Lesson appears in

UnitComputing / Programming 5: Strings and lists

Computing