Page 243 - think python 2
P. 243

Index
221
 subtraction with borrowing, 159 suffix, 131
suit, 171
sum, 185
sum function, 118 superstitious debugging, 200 swap pattern, 116
syntax, 5, 7, 13, 162, 194 syntax error, 13, 15, 193 SyntaxError, 19
temporary variable, 51, 60, 199 test case, minimal, 198
testing
and absence of bugs, 87 incremental development, 52 is hard, 87
knowing the answer, 53
leap of faith, 57
minimal test case, 198
text
plain, 83, 125
random, 131 text file, 145
Time class, 155
time module, 101
token, 5, 7
traceback, 24, 26, 44, 46, 107, 196 translate method, 125
traversal, 72, 75, 77, 79, 85, 93, 100, 105, 106, 119, 127
dictionary, 168
list, 91 traverse
dictionary, 120 triangle, 48
trigonometric function, 18 triple-quoted string, 35 True special value, 40
try statement, 140, 153 tuple, 115, 117, 121, 122
as key in dictionary, 120, 132 assignment, 116 comparison, 116, 174
in brackets, 120
singleton, 115
slice, 116
tuple assignment, 117, 119, 122 tuple function, 115
tuple methods, 204
Turing complete language, 55 Turing Thesis, 55
Turing, Alan, 55
turtle typewriter, 37 TurtleWorld, 48
type, 4, 7 bool, 40
dict, 103 file, 137 float, 4 function, 20 int, 4
list, 89
NoneType, 24
programmer-defined, 147, 153, 155, 162,
165, 173 set, 130
str, 4
tuple, 115 type checking, 58
type conversion, 17
type function, 153
type-based dispatch, 166, 167, 169 TypeError, 72, 74, 108, 116, 118, 139, 164, 197 typewriter, turtle, 37
typographical error, 134
UnboundLocalError, 110 underscore character, 10 uniqueness, 101
Unix command
ls, 142 update, 64, 67, 69
database, 141 global variable, 110 histogram, 127 item, 91
slice, 92
update method, 120 update operator, 93 use before def, 20
value, 4, 7, 95, 96, 112 default, 129
tuple, 117 ValueError, 46, 117 values method, 104 variable, 9, 14
global, 110 local, 22











































   240   241   242   243   244