Skip to content

Think Python

Best in textbook rentals since 2012!

ISBN-10: 144933072X

ISBN-13: 9781449330729

Edition: 2012

Authors: Allen B. Downey

List price: $35.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

Think Python is an introduction to Python programming for students with no programming experience. It starts with the most basic concepts of programming, and is carefully designed to define all terms when they are first used and to develop each new concept in a logical progression. Larger pieces, like recursion and object-oriented programming are divided into a sequence of smaller steps and introduced over the course of several chapters.
Customers also bought

Book details

List price: $35.99
Copyright year: 2012
Publisher: O'Reilly Media, Incorporated
Publication date: 9/4/2012
Binding: Paperback
Pages: 300
Size: 7.00" wide x 9.19" long x 0.86" tall
Weight: 1.100
Language: English

Allen Downey is an Associate Professor of Computer Science at the Olin College of Engineering. He has taught computer science at Wellesley College, Colby College and U.C. Berkeley. He has a Ph.D. in Computer Science from U.C. Berkeley and Master's and Bachelor's degrees from MIT.

Preface
The Way of the Program
The Python Programming Language
What Is a Program?
What Is Debugging?
Syntax Errors
Runtime Errors
Semantic Errors
Experimental Debugging
Formal and Natural Languages
The First Program
Debugging
Glossary
Exercises
Variables, Expressions, and Statements
Values and Types
Variables
Variable Names and Keywords
Operators and Operands
Expressions and Statements
Interactive Mode and Script Mode
Order of Operations
String Operations
Comments
Debugging
Glossary
Functions
Function Calls
Type Conversion Functions
Math Functions
Composition
Adding New Functions
Definitions and Uses
Flow of Execution
Parameters and Arguments
Variables and Parameters Are Local
Stack Diagrams
Fruitful Functions and Void Functions
Why Functions?
Importing with from
Debugging
Glossary
Exercises
Case Study: Interface Design
Turtle World
Simple Repetition
Exercises
Encapsulation
Generalization
Interface Design
Refactoring
A Development Plan
Docstring
Debugging
Glossary
Exercises
Conditionals and Recursion
Modulus Operator
Boolean Expressions
Logical Operators
Conditional Execution
Alternative Execution
Chained Conditionals
Nested Conditionals
Recursion
Stack Diagrams for Recursive Functions
Infinite Recursion
Keyboard Input
Debugging
Glossary
Exercises
Fruitful Functions
Return Values
Incremental Development
Composition
Boolean Functions
More Recursion
Leap of Faith
One More Example
Checking Types
Debugging
Glossary
Exercises
Iteration
Multiple Assignment
Updating Variables
The while Statement
break
Square Roots
Algorithms
Debugging
Glossary
Exercises
Strings
A String Is a Sequence
len
Traversal with a for Loop
String Slices
Strings Are Immutable
Searching
Looping and Counting
String Methods
The in Operator
String Comparison
Debugging
Glossary
exercises
Case Study: Word Play
Reading Word Lists
Exercises
Search
Looping with Indices
Debugging
Glossary
Exercises
Lists
A List Is a Sequence
Lists Are Mutable
Traversing a List
List Operations
List Slices
List Methods
Map, Filter, and Reduce
Deleting Elements
Lists and Strings
Objects and Values
Aliasing
List Arguments
Debugging
Glossary
Exercises
Dictionaries
Dictionary as a Set of Counters
Looping and Dictionaries
Reverse Lookup
Dictionaries and Lists
Memos
Global Variables
Long Integers
Debugging
Glossary
Tuples
Tuples Are Immutable
Tuple Assignment
Tuples as Return Values
Variable-Length Argument Tuples
Lists and Tuples
Dictionaries and Tuples
Comparing Tuples
Sequences of Sequences
Debugging
Glossary
Exercises
Case Study: Data Structure Selection
Word Frequency Analysis
Random Numbers
Word Histogram
Most Common Words
Optional Parameters
Dictionary Subtraction
Random Words
Markov Analysis
Data Structures
Debugging
Glossary
Exercises
Files
Persistence
Reading and Writing
Format Operator
Filenames and Paths
Catching Exceptions
Databases
Pickling
Pipes
Writing Modules
Debugging
Glossary
Classes and Objects
User-Defined Types
Attributes
Rectangles
Instances as Return Values
Objects Are Mutable
Copying
Debugging
Glossary
Exercises
Classes and Functions
Time
Pure Functions
Modifiers
Prototyping Versus Planning
Debugging
Glossary
Exercises
Classes and Methods
Object-Oriented Features
Printing Objects
Another Example
A More Complicated Example
The init Method
The_str_Method
Operator Overloading
Type-Based Dispatch
Polymorphism
Debugging
Interface and Implementation
Glossary
Exercises
Inheritance
Card Objects
Class Attributes
Comparing Cards
Decks
Printing the Deck
Add, Remove, Shuffle, and Sort
Inheritance
Class Diagrams
Debugging
Data Encapsulation
Glossary
Exercises
Case Study: Tkinter
GUI
Buttons and Callbacks
Canvas Widgets
Coordinate Sequences
More Widgets
Packing Widgets
Menus and Callables
Binding
Debugging
Glossary
Exercises
Debugging
Analysis of Algorithms
Lumpy
Index