12.07.2015 Views

Think Python - Denison University

Think Python - Denison University

Think Python - Denison University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

204 Indexworstever, 193Button widget, 182calculator, 8, 16call graph, 109, 113Callable object, 188callback, 182, 187–189, 191, 192Canvas coordinate, 183, 190Canvas item,183Canvas object, 151Canvas widget, 183Car Talk, 86, 113, 124Card class,170card, playing, 169carrying, addition with, 68, 154, 156case-sensitivity, variable names, 15catch, 143chained conditional, 41, 47character, 71checksum, 143child class,174, 177choice function, 126circlefunction, 31circular definition, 56class,145, 151Card, 170child, 174, 177Date, 158Deck, 172Hand, 174Kangaroo, 167parent, 174Point, 145, 163Rectangle, 147SimpleTurtleWorld, 186Time, 153class attribute,170, 177class definition, 145class diagram, 176, 178class object, 146, 151close method, 136, 139, 141cmp function, 172cmp method, 171Collatz conjecture, 65colon, 19, 196color list,152, 168comment, 14, 16commutativity, 14, 165compare function, 52comparisonstring,77tuple, 121, 172compile, 1,7composition, 19, 22, 26, 54, 172compound statement, 40, 47compressionfile, 141concatenation, 14, 16, 23, 72, 74, 95list,91, 98, 101condition, 40, 47, 65, 197conditional, 196chained, 41, 47nested, 42, 47conditional execution, 40conditional statement, 40, 47, 55config method, 183consistency check, 112, 156contributors, viiconversiontype, 17coordinateCanvas, 183, 190pixel, 190coordinate sequence, 184copydeep, 150shallow, 150slice, 74, 92toavoid aliasing, 99copy module, 149copying objects, 149count method, 76counter, 75, 79, 104, 111counting and looping, 75crosswords, 81cummings, e. e., 3cumulative sum, 94Czech Republic, national flag, 152data structure, 122, 123, 131database, 139, 143, 144Date class,158datetime module, 158dead code, 52, 60, 199debugger (pdb), 199debugging, 3, 6, 7, 15, 25, 35, 45, 59, 77, 85,98, 112, 122, 132, 142, 150, 157, 166,176, 191, 195by bisection, 68emotional response, 6, 201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!