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

List methods

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 use a list to return multiple values from a function.

Key Notes

  • List methods can be use to alter the contents of a list.
  • A function returns a value.
  • Sometimes you need a function to return more than one value.
  • A list is a method that you can use to return more than one value from a function.

Vocabulary To Learn

  • append: add an item to the end of a list
  • insert: add an item to a given position in a list
  • pop: remove an item from a given index in a list
  • count: counting the number of occurrences of a given item

Common Mistakes To Avoid

  • A function can only ever return one value.

3 Quick Questions (With Answers)

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

List methods can be use to alter the contents of a list. A function returns a value.

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

add an item to the end of a list. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: A function can only ever return one value. Correction: A list can be used to return multiple values from a function.

More Lessons In This Unit

Browse all guides in the Year 10 Computing guide library.