Page 237 - thinkpython
P. 237

Index                                                                       215

                               reload, 144, 195                     hashable, 108, 112, 120
                               repr, 144                            HashMap, 207
                               reversed, 121                        hashtable, 112, 206, 210
                               shuffle, 175                          header, 19, 25, 194
                               sorted, 99, 106, 121                 Hello, World, 3
                               sqrt, 18, 53                         hexadecimal, 148
                               str, 18                              high-level language, 6
                               sum, 118, 185                        histogram, 105
                               trigonometric, 18                        random choice, 126, 130
                               tuple, 115                               word frequencies, 127
                               tuple as return value, 117           Holmes, Sherlock, 25
                               type, 153                            homophone, 113
                               void, 24                             hypotenuse, 54
                               zip, 118
                           function argument, 21                    identical, 100
                           function call, 17, 26                    identity, 96, 152
                           function composition, 54                 if statement, 41
                           function definition, 19, 20, 25           immutability, 74, 79, 97, 108, 115, 121
                           function frame, 23, 26, 44, 56, 109      implementation, 105, 112, 132, 169
                           function object, 27                      import statement, 26, 144
                           function parameter, 21                   in operator, 205
                           function syntax, 162                     in operator, 76, 85, 90, 104
                           function type, 20                        increment, 64, 69, 157, 163
                               modifier, 157                         incremental development, 60, 193
                               pure, 156                            indentation, 19, 162, 194
                           functional programming style, 158, 160   index, 71, 78, 79, 90, 103, 197
                                                                        looping with, 86, 91
                           gamma function, 58                           negative, 72
                           gather, 118, 123, 190                        slice, 73, 91
                           GCD (greatest common divisor), 61            starting at zero, 71, 90
                           generalization, 32, 36, 85, 159          IndexError, 72, 78, 90, 197
                           generator expression, 185, 186, 191      indexing, 204
                           generator object, 185                    infinite loop, 65, 69, 195, 196
                           geometric resizing, 209                  infinite recursion, 44, 47, 58, 195, 196
                           get method, 105                          inheritance, 176, 178, 180, 190
                           getattr function, 168                    init method, 164, 168, 172, 174, 176
                           getcwd function, 139                     initialization
                           global statement, 110, 112                   variable, 69
                           global variable, 110, 112                initialization (before update), 64
                               update, 110                          input function, 45
                           GNU Free Documentation License, v, vi    instance, 148, 153
                           greatest common divisor (GCD), 61            as argument, 149
                           grid, 27                                     as return value, 150
                           guardian pattern, 59, 60, 78             instance attribute, 148, 153, 172, 180
                                                                    instantiate, 153
                           Hand class, 176                          instantiation, 148
                           hanging, 195                             int function, 17
                           HAS-A relationship, 177, 180             int type, 4
                           hasattr function, 153, 168               integer, 4, 7
                           hash function, 108, 112, 207             interactive mode, 11, 14, 24
   232   233   234   235   236   237   238   239   240   241   242