Pearson Edexcel GCSE Computer Science (1CP2)Specification point 6.3.3

Edexcel 1CP2 6.3.3: String manipulation

The free BugBot lessons that teach this point, a robot to try it on, and the past-paper questions that test it.

What it covers

Text in a program is a string: a string of characters, in order. Robots report what they are doing in strings, users type strings, and messages between robots are strings. This lesson is about taking strings apart and putting them together.

  • Joining strings
  • Length and indexing
  • Slicing
  • Searching
  • Building reports with f-strings
Read the free lesson (15 min)

Or do it in the simulator, with tasks that mark themselves

Lessons that teach it

  1. F3.1 String handling Strings, lists and records
    Length, indexing, slicing, searching and joining strings, and f-strings.
  2. F3.2 Character codes and conversion Strings, lists and records
    ord and chr, ASCII, comparing strings, and a Caesar cipher.

Try it on a robot

The task from F3.1 String handling, running here. Change the program and press Run.

Past paper questions on this

Real exam questions that test this, each worked through with a program you can run.

The specification is Edexcel's own document; this page says which of our lessons teach point 6.3.3 and is not endorsed by the board.