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.

Indexabecedarian, 72, 83abs function, 52absolute path, 137, 143access, 89accumulator, 100histogram, 127list,93string,173sum, 93Ackerman function, 61add method, 163addition withcarrying, 68algorithm, 3, 7, 67, 130Euclid, 62MD5, 143RSA, 112square root, 69aliasing, 96, 100, 147, 149, 167copying toavoid, 99alphabet, 37alternative execution, 41ambiguity, 5anagram, 100anagram set,123, 140and operator, 40anydbm module, 139append method, 92, 98, 101, 172, 173arcfunction, 31argument, 17, 19, 21, 22, 26, 97gather, 117keyword, 33, 36, 121, 182list,97optional, 76, 95, 107variable-length tuple, 117argument scatter,117arithmeticoperator, 12assertstatement, 157assignment, 15, 63, 89augmented, 93, 100item, 74, 90, 116multiple, 68, 110tuple, 116–118, 123assignment statement, 10attributedict ,166class, 170, 177initializing, 166instance, 146, 151, 170, 177AttributeError,150, 199augmented assignment, 93, 100Austin, Jane, 127available colors, 152, 168Bacon, Kevin, 144Bangladesh, national flag, 152base case, 44, 47benchmarking, 132, 134big, hairyexpression, 200binary search, 101binding, 189, 192bingo, 124birthday, 158birthday paradox, 100bisect module, 101bisection search, 101bisection, debugging by, 68bitwiseoperator, 12body, 19, 25, 65bool type, 39boolean expression, 39, 46boolean function, 54, 153boolean operator, 76borrowing, subtraction with,68, 157bound method, 187, 192bounding box, 152, 184, 192bracketsquiggly, 103bracket operator, 71, 89, 116branch, 41, 47break statement, 65bug, 3, 7worst,167

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

Saved successfully!

Ooh no, something went wrong!