Page 436 -
P. 436
the index
H index (offset value)
for arrays, 132
for strings, 42
hash mark (#), preceding comments, 95, 205
index() method, arrays, 138
hashes (dictionaries), 152, 175
adding data to, 153, 156, 161–162 inheritance, 392
creating, 153, 175 __init__() method, 372, 375, 383
iterating through data, 154–156 initializer methods (constructors), 370–373, 383
keys of, restrictions on, 156 input() function, 4, 35, 387
returning from functions, 164–167, 170–172
sorting, 158 insert() method
arrays, 138
Head First C# (Stellman, Greene), 388
data entry widgets, 262, 263, 269
Head First Java (Sierra, Bates), 388
int() function, 4, 9, 35
Head First Object-Oriented Analysis & Design Integrated Development Environment (IDE), 5, 9, 395
(McLaughlin, Pollice, West), 392
internationalization, format strings for, 186
Head First SQL (Beighley), 170
interpreter, 5. (see also IDLE)
health club example, 178–213
file format changes, 187–199 IntVar() variable, 249, 253, 255
multiple price discounts, 204–213 iPython shell, 395
price discount, 200–203 IronPython project, 388
transactions, recording in file, 179–186
items() method, hashes, 154, 175
Help menu, 22
iteration. (see loops)
HTML, as strings, 49
J
I
Java language
IDE (Integrated Development Environment), 5, 9, 395 compared to Python, 9
IDLE, 5, 9, 22 learning, 388
if/else branches, 4, 15–21, 24 Jython project, 388
import statement, 49, 69
importing
libraries, 49, 69, 221, 226 K
modules, 193, 199, 202, 211, 214
indents in code, 21, 22 keys() method, hashes, 154, 175
you are here 4 401

