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.

Index 205experimental, 4superstition, 201Deck class, 172deck, playing cards, 172declaration, 110, 113decorate-sort-undecorate pattern, 121decrement, 64, 69deep copy, 150, 151deepcopy function, 150def keyword, 19default value, 128, 133, 162avoiding mutable, 167definitioncircular, 56class,145function, 19recursive, 124del operator, 94deletion, element of list,94delimiter,95, 100deterministic, 126, 133development plan, 36encapsulation and generalization, 35incremental, 52, 195planned, 156problem recognition, 84, 85prototype and patch, 154, 156random walk programming, 133, 201diagramcall graph, 113class,176, 178object, 146, 148, 150, 151, 153, 171stack, 23, 97state, 10, 63, 78, 90, 96, 97, 108, 120, 146,148, 150, 153, 171dict attribute, 166dict function, 103dictionary, 103, 112, 119, 199initialize, 119invert, 107lookup, 106looping with,106reverse lookup, 106subtraction, 129traversal, 119, 166dictionary methodsanydbm module, 139Dijkstra,Edsger, 85directory, 137, 143walk, 138working, 137dispatchtype-based, 165dispatch, type-based, 164divisibility, 39divisionfloating-point, 12floor, 12, 46divmod, 117, 156docstring, 35, 36, 145documentation, 8dot notation, 18, 26, 75, 146, 160, 170double letters,86Doyle, Arthur Conan, 4drag-and-drop, 189DSU pattern, 121, 123, 128duplicate, 100, 101, 113, 143Einstein, Albert,33element, 89, 99element deletion, 94elif keyword, 41ellipses, 20else keyword, 41email address, 116embedded object, 148, 151, 167copying, 149emotional debugging, 6, 201empty list,89empty string,79, 95encapsulation, 32, 36, 54, 67, 75, 175encode, 169, 177encrypt, 169encryption, 112end ofline character, 142Entry widget, 184enumerate function, 119epsilon, 67equality and assignment, 63equivalence, 96equivalent, 100errorcompile-time, 195runtime, 3, 15, 44, 46, 195semantic, 4, 10, 15, 78, 195, 199shape, 122syntax, 3, 15, 195error checking, 58error message, 3, 4, 6, 10, 15, 195Euclid’s algorithm, 62

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

Saved successfully!

Ooh no, something went wrong!