SHSubjectHub

String Manipulation

OCR J2772.2cGCSELesson packSubscription
Also online

This worksheet marks itself

Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.

  • 8 questions
  • 23 marks
  • about 17 minutes
  • marked instantly

Question types: multi-part, multiple choice, matching, true or false, short answer.

Try one from this worksheet

What is the output of "COMPUTER"[3:6] in Python?

Pick an answer: it's marked straight away, just as your pupils would see it.

About this resource

Master string operations including length, substrings, upper/lower case, ASCII conversion, and concatenation in both Python and OCR Reference Language.

15 slides.

Lesson outline

  1. String Length
  2. Substrings - Extracting Parts of a String
  3. String Operations Explorer
  4. Substring Challenge
  5. Upper and Lower Case
  6. Code Demo: String Processing
  7. ASCII Conversion: ASC() and CHR()
  8. Task: ASCII Shift
  9. Concatenation
  10. Coding Challenge: Username Generator
  11. Task: String Operations Practice
  12. Combining String Operations
Unit bundle2.2 Programming Fundamentals
Part of: 2.2 Programming Fundamentals: the whole unitEvery resource in the unit in one zip.

More from 2.2 Programming Fundamentals