The Algopelago lighthouse: a stack of books on a small clay island

Algopelago

Learn algorithms

An array is a row of numbered lockers on a quay. Binary search is halving a library shelf. Sorting is weighing crates in a yard. In Algopelago you do each one by hand, then learn its proper name, then read it in Python.

Coming soon to the App Store for iPhone

Search a shelf by halving it: the books are in order, so each pull rules out half. That's binary search.
Sort with a balance scale: compare two at a time, the way sorting code does.
Then read it as Python: door numbers become i, parcels become arr[i].