Skip to content

Study Hub

Study Guides

This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.

Year 10 - Computing

Programming project - Sense HAT II

Programming: strings and lists

Unit Summary

This unit introduces pupils to string-handling techniques, they will explore how a string can be iterated over using a loop and sliced to create substrings. Pupils will be introduced to arrays and lists and explore the differences between the two. They will manipulate with a variety of list methods.

Lesson Summary

You will learn to randomly generate pixel colours and use this to create a fortune-telling ball.

Key Notes

  • Static data structures reserve memory locations for a set amount of data. Their size cannot change.
  • Dynamic data structures are more flexible. The memory capacity is not fixed.
  • The choice() function can be used to randomly choose an item from a list.
  • For example, it could randomly pick a pixel from a list storing all pixels in an LED matrix.

Vocabulary To Learn

  • append: add to an existing data structure
  • pixel: a single element of an image on a computer screen

Common Mistakes To Avoid

  • A list is static, so once it is created it cannot be edited or amended.

3 Quick Questions (With Answers)

1. Describe the system or process from this lesson in clear steps.

Static data structures reserve memory locations for a set amount of data. Their size cannot change. Dynamic data structures are more flexible. The memory capacity is not fixed.

2. Define this computing term and give one practical example. 'append'

add to an existing data structure. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: A list is static, so once it is created it cannot be edited or amended. Correction: A list is a dynamic data structure that can change in size. The append() function can be used to add elements to a list.

More Lessons In This Unit

Browse all guides in the Year 10 Computing guide library.