The document Functions and branching, taken from the book A Primer on Scientific Programming with Python, 5th edition, by H. P. Langtangen, published by Springer, 2016, is here available in the following formats: