Think Python
A Wikibookian suggests that How to Think Like a Computer Scientist: Learning with Python 2nd Edition be merged into this book. Discuss whether or not this merger should happen on the discussion page. |
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
- Preface
- The way of the program
- Variables, expressions and statements
- Functions
- Case study: interface design
- Conditional and recursion
- Fruitful functions
- Iteration
- Strings
- Case study: word play
- Lists
- Dictionaries
- Tuples
- Case study: data structure selection
- Files
- Classes and objects
- Classes and functions
- Classes and methods
- Inheritance
- Debugging