More discussion of simple Python programs, and an explanation for the block structure.  Thanks @mseddon.