This book offers a unique introduction to the Python programming language for mathematics majors, mathematicians, and math enthusiasts by building on familiar mathematical concepts to teach Python in a natural and accessible way. From the start, readers are taught to program in a functional style. Comprehensions, generator expressions, generator functions, and recursion are introduced early, providing a foundation for writing clear, concise, and readable code.
No previous programming experience is assumed. Containing many examples and over three hundred practice problems, the book is well suited for self-study as well as for use in undergraduate courses introducing Python.