Page 238 - think python 2
P. 238
216
Index
interface, 33, 36, 169, 179 interlocking words, 101 interpret, 6
interpreter, 2
invariant, 159, 160 invert dictionary, 107 invocation, 76, 79 IOError, 140
is operator, 95, 152
IS-A relationship, 177, 180 isinstance function, 58, 153, 166 item, 74, 79, 89, 103
dictionary, 112
item assignment, 74, 90, 116 item update, 91
items method, 120 iteration, 64, 69
iterator, 119–121, 123, 204
join, 204
join method, 95, 175
Kangaroo class, 170
key, 103, 112
key-value pair, 103, 112, 120 keyboard input, 45 KeyError, 104, 197 KeyError, 206
keyword, 10, 14, 194 def, 19
elif, 42
else, 41
keyword argument, 33, 36, 191 Koch curve, 49
language formal, 4
natural, 4
safe, 14
Turing complete, 55
leading coefficient, 202 leading term, 202, 209 leap of faith, 57
len function, 26, 72, 104 letter frequency, 123 letter rotation, 80, 113 linear, 209
linear growth, 203 linear search, 205 LinearMap, 206 Linux, 25
lipogram, 84
Liskov substitution principle, 179 list, 89, 94, 100, 121, 184
as argument, 97 concatenation, 91, 97, 101 copy, 92
element, 90
empty, 89
function, 94
index, 90
membership, 90
method, 92
nested, 89, 91
of objects, 174
of tuples, 119
operation, 91
repetition, 91
slice, 91
traversal, 91
list comprehension, 184, 191 list methods, 204 literalness, 5
local variable, 22, 26
log function, 18 logarithm, 135 logarithmic growth, 203 logical operator, 40 lookup, 112
lookup, dictionary, 106 LookupError, 107 loop, 31, 36, 65, 119
condition, 196 for, 30, 44, 72, 91 infinite, 65, 196 nested, 174 traversal, 72 while, 64
loop variable, 184 looping
with dictionaries, 106 with indices, 86, 91 with strings, 75
looping and counting, 75 low-level language, 6
ls (Unix command), 142
machine model, 201, 209 main, 23, 43, 110, 144 maintainable, 169
map pattern, 93, 100