Page 242 - think python 2
P. 242

220
Index
 scaffolding, 53, 60, 112 scatter, 118, 123, 191 Schmidt, Eric, 201 Scrabble, 123
script, 11, 14
script mode, 11, 14, 24
search, 107, 205, 209
search pattern, 75, 79, 85, 186 search, binary, 101
search, bisection, 101
self (parameter name), 163 semantic error, 14, 15, 193, 198 semantics, 15, 162
sequence, 4, 71, 79, 89, 94, 115, 121 set, 130, 186
anagram, 123, 145 set membership, 113 set subtraction, 186 setdefault, 189 setdefault method, 113 sexagesimal, 158 shallow copy, 152, 153 shape, 123
shape error, 122
shell, 142, 145
shelve module, 142 shuffle function, 175 sine function, 18 singleton, 108, 112, 115 slice, 79
copy, 74, 92 list, 91 string, 73 tuple, 116 update, 92
slice operator, 73, 79, 91, 98, 116 sort method, 92, 99, 176
sorted
function, 99, 106 sorted function, 121 sorting, 204, 205 special case, 87, 157 special value
False, 40
None, 24, 26, 52, 92, 94 True, 40
spiral, 38
split method, 95, 117 sqrt, 53
sqrt function, 18
square root, 66
squiggly bracket, 103
stable sort, 205
stack diagram, 23, 26, 37, 44, 56, 60, 97
state diagram, 9, 14, 63, 78, 90, 96, 108, 120,
148, 150, 152, 155, 173 statement, 10, 14
assert, 159, 160 assignment, 9, 63
break, 66
compound, 41 conditional, 41, 47, 55, 184 for, 30, 72, 91
global, 110, 112 if, 41
import, 26, 144 pass, 41
print, 3, 7, 165, 197 raise, 107, 112, 159 return, 44, 51, 199 try, 140, 153
while, 64 step size, 79
StopIteration, 185
str function, 18
__str__ method, 165, 174 string, 4, 7, 94, 121
accumulator, 175 comparison, 77 empty, 95 immutable, 74 method, 75 multiline, 35, 194 operation, 12 slice, 73 triple-quoted, 35
string concatenation, 204 string method, 79
string methods, 204
string module, 125
string representation, 144, 165 string type, 4
strip method, 84, 125 structshape module, 122 structure, 5
subject, 163, 169
subset, 187 subtraction
dictionary, 129 with borrowing, 68



















































   240   241   242   243   244