Think Python: How to Think Like a Computer Scientist

(singke) #1

stack diagram, Stack Diagrams, Stack Diagrams, Glossary, Exercises, Stack


Diagrams for Recursive Functions, More Recursion, Exercises, List Arguments


state diagram, Assignment Statements, Glossary, Reassignment, Debugging, Lists


Are Mutable, Objects and Values, Aliasing, Dictionaries and Lists, Dictionaries and


Tuples, Attributes, Rectangles, Copying, Time, Class Attributes


statement, Expressions and Statements, Glossary


assert, Debugging,  Glossary

assignment, Assignment  Statements, Reassignment

break,  break

compound,   Conditional Execution

conditional,    Conditional Execution,  Glossary,   Boolean Functions,  Conditional
Expressions

for,    Simple  Repetition, Traversal   with    a   for Loop,   Traversing  a   List

global, Global  Variables,  Glossary

if, Conditional Execution

import, Glossary,   Writing Modules

pass,   Conditional Execution

print,  The First   Program,    Glossary,   The __str__ Method, I   added   so  many    print
statements I get inundated with output.

raise,  Reverse Lookup, Glossary,   Debugging

return, Recursion,  Return  Values, I’ve    got a   function    that    doesn’t return  what    I
expect.

try,    Catching    Exceptions, Debugging

while,  The while   Statement

step size, Exercises

Free download pdf