Skip to content

Strings

Characters in a row — palindromes, windows, and the hashing that finds a needle fast.

Start the module

1. String Basics · 4 min

0 of 11 lessons · 0% complete

Start module

Strings visualizer

Every lesson in this module opens with an animation you can step through. This is the first one — String Basics: Strings never change — every edit builds a brand-new one.

String Basics

Step 1 of 9

Build STRING one character at a time, two ways. A Python string cannot be edited in place.

Lessons
11
Minutes
54
Problems
16
Concepts
5

Quiz yourself: 3 questions from this module

1 / 3

Why can a repeated `s += ch` inside a loop cost O(n²)?