1 / 12

A Name for Something You'll Use Once

Last lesson, to sort words by length, you wrote a whole function with its own name: by_length.

Then you used it exactly once. Handed it to sorted, and never mentioned it again.

It's a bit like writing a quick note to yourself and then giving that note a title, a folder and a place on the shelf.

For a rule this small, the name is doing nothing. Python lets you skip it.