Think Python: How to Think Like a Computer Scientist

Think Python: How to Think Like a Computer Scientist

Free pdf ebook Think Python: How to Think Like a Computer Scientist 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, along with Swampy, a suite of Python programs that is used in some of the exercises.”Think Python” is the manuscript of Python for Software Design from Cambridge University Press.

Table of Contents

  • The way of the program
  • Variables, expressions and statements
  • Functions
  • Case study: interface design
  • Conditionals 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
  • Case study: Tkinter

Book Details

Author(s): Allen B. Downey
Publisher: Green Tea Press
Format(s): PDF, PostScript, HTML
File size: 1.04 MB
Number of pages: 234
Link: Download.

Leave a Reply