Text: Working with Strings

Programming for ML with no experience — if you can type, you can begin

Numbers are half the story. Programs also handle text: names, labels, file paths, whole documents. In Python, a piece of text is called a string, and you make one by putting characters between quotes. A string is like a rack of letter tiles from a word game: each tile is one character, and the string is the whole row of tiles in order. Spaces and punctuation are tiles too, every one of them counts.

🔒 This is a Pro lesson — the interactive figure, worked examples, quiz and practice open with Pro access.

▶ Text: Working with Strings
← Variables & NumbersDecimals & Types →