Page 439 -
P. 439
the index
Q S
queues, 152 Save option, File menu, 7
Scale() widget, 336–338, 340–345, 348
scope of variables, 104–108, 111
R searching
arrays, 138
strings, 52–58
RadioButton() widget, 272–273, 275–280, 292
self variable, 369–370, 377, 383
randint() function, 33, 35
set() method
raw_input() function, 387
data entry widgets, 278, 280
read() method, 49
IntVar() variable, 249
reading from files, 116–118
set_volume() method, pygame, 339
record, 179. (see also database)
sets, 152
recursion, 394
sharing code. (see reusing code)
regex, 394
Shell. (see Python Shell)
Regional Surfing Association (RSA) example, 160–167
showerror message boxes, 306, 308
regular expressions, 394
showinfo message boxes, 304, 306
remove() method, arrays, 138
showwarning message boxes, 306
repeating pieces of code. (see loops)
Sierra, Kathy (Head First Java), 388
replace() method, strings, 56
sleep() function, time library, 70, 72–73
reserved words, 341, 348
slider on a scale. (see Scale() widget)
return() statement, 87–88, 111
sort() method, arrays, 138, 144
return values for functions, 87–88, 111
sorted() function, 158, 175
reusing code. (see also functions)
sorting data, 128–129
with functions, 81–82, 351–360
with modules, 192–199, 200–202, 205–211, 214 algorithms for, 393
in any data structure, 158, 175
reverse() method, arrays, 138, 140, 144
in arrays, 136–140, 144
right angle bracket (>), greater than operator, 62, 75
sound
RSA (Regional Surfing Association) example, 160–167 pausing between playing, 221, 223
Run Module option, Run menu, 7 playing, 221, 226–227
pygame library for, 219–223, 229
404 Index

