Page 438 -
P. 438

the index


           O                                                Pollice, Gary (Head First Object-Oriented Analysis &
                                                                 Design), 392

                                                            polymorphism, 392
           object API, 292
                                                            pop() method, arrays, 138
           object-oriented languages, 368, 383
                                                            POS (point-of-sale) system, 178. (see also health club
           object-oriented programming (OOP), 392
                                                                 example)
           objects, 366, 368, 377, 383. (see also classes; methods)
                                                            pound sign (#), preceding comments, 95, 205
           offset value (index) of strings, 42
                                                            print() function, 4, 35, 387
           OOP (object-oriented programming), 392
                                                            program. (see code)
           open() function, 116, 144
                                                            programming idioms, 386
           OptionMenu() widget, 284–290, 292
                                                            protocol events, 321–322
           Options menu, 22
                                                            protocol() method, apps, 322
           ordered lists. (see also sorting data)
                                                            pseudo-code, 127
                                                            .py file extension, 7

           P                                                pygame library, 219–223, 229, 255
                                                               downloading and installing, 220
                                                               importing, 221, 226
           pack() method, tkinter, 235–236, 238, 264, 269      mixer object for, 221, 226
           packages (third-party libraries), 220, 223          platforms supported by, 219
                                                               setting volume, 339
           parameters for functions, 96–98, 101, 111
                                                            Python, 9
           parentheses (())                                    books about, 386
              in format strings, 182                           command-line execution of, 391
              in function definition, 82
                                                               compared to Java and C#, 9
           pass statement, 221, 255                            integrated into other languages, 388
           paths in code, 13, 20–21                            programming idioms for, 386
           pdb debugger, 390                                   systems supporting, 9
                                                               version 2 of, 387
           percentage symbol (%), preceding format strings, 180–182
                                                               versions of, 9
           period (.), in library function request, 69
                                                            Python IDE. (see IDLE)
           permissions for files, 295
                                                            Python Shell, 5
           play() method, sounds, 221                          errors displayed in, 295
           plus sign (+), addition operator, 58                running code in, 8
           point-of-sale (POS) system, 178. (see also health club   .pyw file extension, 237
                example)







                                                                                       you are here 4    403
   433   434   435   436   437   438   439   440   441   442