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.
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.
David Nacin
functional Python functional programming mathematics with Python Sets in Python recursion in Python Python comprehensions set comprehension Names Dictionaries Strings Decorators Itertools