Not for the book type format - the kids will be typing the code in, not copying + pasting them.
Significant whitespace is a killer in printed form; so Python is not even in the running.
And page 23 teaches you about significant whitespace, and how to configure several text editors that a kid's likely to have available to actually show it like that. Heck, I use Panic's Nova for my text editing and it does that out of the box with no configuration needed.