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

Substrings

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 slice a string to create a substring and then use list methods on the substring.

Key Notes

  • A substring is a part of a string.
  • Slicing can be used to separate a string into substrings.
  • ASCII is a character set used to represent all of the characters on a standard American or English keyboard.

Vocabulary To Learn

  • substring: part of a string
  • slice: the process of extracting a specific substring
  • ASCII: a character set that represents each character with a unique numerical value

Common Mistakes To Avoid

  • Indexing starts at 1 as that is the location of the first element.

3 Quick Questions (With Answers)

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

A substring is a part of a string. Slicing can be used to separate a string into substrings.

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

part of a string. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: Indexing starts at 1 as that is the location of the first element. Correction: In Python, and many other programming languages, indexing starts at 0.

More Lessons In This Unit

Browse all guides in the Year 10 Computing guide library.