Samples programs from the book "Astrophysics with a PC" converted to Python