Think Python is a concise introduction to software design using the Python programming language. Intended for people with no programming experience, this book starts with the most basic concepts and gradually adds new material. Some of the ideas students find most challenging, like recursion and object-oriented programming, are divided into a sequence of smaller steps and introduced over the course of several chapters.
The focus is on the programming process, with special emphasis on debugging. The book includes a wide range of exercises, from short examples to substantial projects, so that students have ample opportunity to practice each new concept. Exercise solutions and code examples are available from thinkpython.com, along with Swampy, a suite of Python programs used in some of the exercises.
Table of Contents
- The way of the program
- Variables, expressions and statements
- Case study: interface design
- Conditional and recursion
- Fruitful functions
- Case study: word play
- Case study: data structure selection
- Classes and objects
- Classes and functions
- Classes and methods
Read in another language
This page is available in 1 language