Chapter 8. String Processing

A string is a series of characters that is treated as a single unit. You can write programs to combine, compare, sort, encrypt, and otherwise manipulate strings. Here’s what you’ll learn in this chapter:

  • How Scratch stores strings

  • How to use the string manipulation blocks available in Scratch

  • Several string processing techniques

  • How to write interesting programs that process strings

We’ll start with a detailed look at the string data type, and then we’ll write procedures to manage and manipulate strings. Those procedures will remove and replace characters, insert and extract substrings, and randomize character order. After that, we’ll use these procedures and apply these techniques to write some fun and practical applications. ...

Get Learn to Program with Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.