John M. Stewart: Python for Scientists

Second edition, Cambridge University Press 2016/7

This website, which is free from copyright restrictions, gives access to three files.

Code samples includes most of the code snippets, which are 4 or more lines long. They are organized by the section in the book in which they occur.