Explaining the reasons behind ideas rather than just the language, this is a very good first step into programming, suited to someone who has never written code. It goes a little deeper than many beginner books, and offers exercises people find absorbing. It also teaches how to track down errors from the start. A common tip is to do every exercise. It is free to read online.