12.07.2015 Views

Think Python - Denison University

Think Python - Denison University

Think Python - Denison University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

208 Indexas argument, 147as returnvalue, 148instance attribute, 146, 151, 170, 177instantiation, 146int function, 17int type, 9integer, 15long, 111interactive mode, 2, 7, 12, 24interface, 33, 35, 36, 177interlocking words,101Internet Movie Database (IMDb), 144interpret, 1, 7invariant, 157, 158, 191invert dictionary, 107invocation, 75, 79IOError,138isoperator, 96, 149IS-A relationship, 176, 178isinstance function, 58, 164item, 79, 89Canvas, 183, 192dictionary, 112item assignment, 74, 90, 116item update, 91itemsmethod, 119iteration, 63, 64, 69joinmethod, 95, 173Kangaroo class,167Kevin Bacon Game, 144key, 103, 112key-value pair, 103, 112, 119keyboard input, 45KeyError, 104, 199keys method, 106keyword, 11, 15, 196def, 19elif,41else, 41keyword argument, 33, 36, 121, 182, 192Koch curve, 48Label widget, 182languageformal, 4high-level, 1low-level, 1natural, 4programming, 1safe, 3Turing complete, 55leap of faith, 57len function, 26, 72, 104letter frequency, 123letter rotation, 80, 113Linux, 4lipogram, 82list,89, 95, 99, 122as argument, 97comprehension, 94concatenation, 91, 98, 101copy, 92element, 89empty, 89function, 95index, 90membership, 90method, 92nested, 89, 91of objects, 172of tuples, 118operation, 91repetition, 91slice, 92traversal, 91, 100literalness, 5local variable, 22, 26log function, 18logarithm, 134logical operator, 39, 40long integer, 111lookup, 113lookup, dictionary, 106loop, 31, 36, 65, 118condition, 197event, 181for,30, 72, 91infinite, 65, 181, 197nested, 172traversal, 72while, 64loopingwithdictionaries, 106withindices, 84, 91withstrings,75looping and counting, 75low-level language, 1, 7ls (Unixcommand), 140

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!