Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
1Activity

Table Of Contents

2.7 Order of operations
2.8 Operations on strings
2.9 Composition
2.10 Comments
2.11 Glossary
3.5 Composition
3.6 Adding new functions
3.7 Definitions and use
3.8 Flow of execution
3.9 Parameters and arguments
3.10 Variables and parameters are local
3.11 Stack diagrams
3.12 Functions with results
3.13 Glossary
Conditionals and recursion
4.1 The modulus operator
4.2 Boolean expressions
4.3 Logical operators
4.4 Conditional execution
4.5 Alternative execution
4.6 Chained conditionals
4.7 Nested conditionals
4.8 The return statement
4.9 Recursion
4.10 Stack diagrams for recursive functions
4.11 Infinite recursion
4.12 Keyboard input
4.13 Glossary
Fruitful functions
5.1 Return values
5.2 Program development
5.3 Composition
5.4 Boolean functions
5.5 More recursion
5.6 Leap of faith
5.7 One more example
5.8 Checking types
5.9 Glossary
Iteration
6.1 Multiple assignment
6.2 The while statement
6.3 Tables
6.4 Two-dimensional tables
6.5 Encapsulation and generalization
6.6 More encapsulation
6.7 Local variables
6.8 More generalization
6.9 Functions
6.10 Glossary
Strings
7.1 A compound data type
7.2 Length
7.3 Traversal and the for loop
7.4 String slices
7.5 String comparison
7.6 Strings are immutable
7.7 A find function
7.8 Looping and counting
7.9 The string module
7.10 Character classification
7.11 Glossary
8.1 List values
8.2 Accessing elements
8.3 List length
8.4 List membership
8.5 Lists and for loops
8.6 List operations
8.7 List slices
8.8 Lists are mutable
8.9 List deletion
8.10 Objects and values
8.11 Aliasing
8.12 Cloning lists
8.13 List parameters
8.14 Nested lists
8.15 Matrixes
8.16 Strings and lists
8.17 Glossary
9.1 Mutability and tuples
9.2 Tuple assignment
9.3 Tuples as return values
9.4 Random numbers
9.5 List of random numbers
9.6 Counting
9.7 Many buckets
9.8 A single-pass solution
9.9 Glossary
10.1 Dictionary operations
10.2 Dictionary methods
10.3 Aliasing and copying
10.4 Sparse matrices
10.5 Hints
10.6 Long integers
10.7 Counting letters
10.8 Glossary
Files and exceptions
11.1 Text files
11.2 Writing variables
11.3 Directories
11.4 Pickling
11.5 Exceptions
12.1 User-defined compound types
12.2 Attributes
12.3 Instances as parameters
12.4 Sameness
12.5 Rectangles
12.6 Instances as return values
12.7 Objects are mutable
12.8 Copying
12.9 Glossary
Classes and functions
13.1 Time
13.2 Pure functions
13.3 Modifiers
13.4 Which is better?
13.5 Prototype development versus planning
14.2 printTime
14.3 Another example
14.4 A more complicated example
14.9 Polymorphism
14.10 Glossary
Sets of objects
15.1 Composition
15.2 Card objects
15.3 Class attributes and the str method
15.4 Comparing cards
15.5 Decks
15.6 Printing the deck
15.7 Shuffling the deck
15.8 Removing and dealing cards
15.9 Glossary
Inheritance
16.1 Inheritance
16.2 A hand of cards
16.3 Dealing cards
16.4 Printing a Hand
16.5 The CardGame class
16.6 OldMaidHand class
16.7 OldMaidGame class
16.8 Glossary
Linked lists
17.1 Embedded references
17.2 The Node class
17.3 Lists as collections
17.4 Lists and recursion
17.5 Infinite lists
17.6 The fundamental ambiguity theorem
17.7 Modifying lists
17.8 Wrappers and helpers
17.9 The LinkedList class
17.10 Invariants
17.11 Glossary
18.1 Abstract data types
18.2 The Stack ADT
18.3 Implementing stacks with Python lists
18.4 Pushing and popping
18.5 Using a stack to evaluate postfix
18.6 Parsing
18.7 Evaluating postfix
18.8 Clients and providers
18.9 Glossary
19.1 The Queue ADT
19.2 Linked Queue
19.3 Performance characteristics
19.4 Improved Linked Queue
19.5 Priority queue
19.6 The Golfer class
19.7 Glossary
20.1 Building trees
20.2 Traversing trees
20.3 Expression trees
20.4 Tree traversal
20.5 Building an expression tree
20.6 Handling errors
20.7 The animal tree
20.8 Glossary
Debugging
A.1 Syntax errors
A.2 Runtime errors
A.3 Semantic errors
Creating a new data type
B.1 Fraction multiplication
B.2 Fraction addition
B.3 Euclid’s algorithm
B.4 Comparing fractions
B.5 Taking it further
B.6 Glossary
C.1 Python-related web sites and books
D.1 Applicability and Definitions
D.2 Verbatim Copying
D.3 Copying in Quantity
D.4 Modifications
D.5 Combining Documents
D.6 Collections of Documents
D.7 Aggregation with Independent Works
D.8 Translation
D.9 Termination
D.10 Future Revisions of This License
0 of .
Results for:
No results containing your search query
P. 1
Think Phyton

Think Phyton

Ratings: (0)|Views: 5 |Likes:
Published by Jorge Tahhan

More info:

Published by: Jorge Tahhan on May 18, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/15/2011

pdf

text

original

You're Reading a Free Preview
Pages 6 to 45 are not shown in this preview.
You're Reading a Free Preview
Pages 51 to 148 are not shown in this preview.
You're Reading a Free Preview
Pages 154 to 167 are not shown in this preview.
You're Reading a Free Preview
Pages 173 to 174 are not shown in this preview.
You're Reading a Free Preview
Pages 180 to 288 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->