Python Programming for the Absolute Beginner, 3rd Edition

I

IDLE (integrated development environment)

interactive mode, 8–10

Not Saved dialog box, 12

script mode, 11–12

if-elif-else statement, 63–66

if-else statement, 61–62

if statement, 57–59, 61

images

background, 343–345

load_image() function, 344–345

loading from sprites, 354–355

images attribute, Animation class, 430

immutable sequences, 104–105

immutable tuples, 120

import statement, random numbers, 55–56

imported classes, 284

imported functions, 284

importing modules, 283

in operator, 99

lists, 131

tuples with, 118

indentation, 60–61

index() function, 138

IndexError exception type, 215

indexing

lists, 131

tuples, 118–119

infinite loops, 69–71

inheritance, 268–269

init() method, 234–235, 294

initialization methods, 234

initializing attributes, 237–238

init_screen() method, 425

init_sprite() method, 353

init_text() method, 428

input, raw_input() function, 36–37, 48

installing Python, 6

instances, 229

instantiated objects, 229, 232

Instructions program example, 165–167

int() function, 45–46, 87

integers

converting strings to, 45–46

defined, 30

mathematical operators as, 31

interactive mode, IDLE, 8–10

invoking methods, 233

invoking static methods, 243

IOError exception type, 215

is_pressed() method

keystrokes, 381–382

Screen class, 425

items() method, 155

Категории