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.

206 Indexeval function, 69evaluate, 13event, 192event handler, 189event loop, 181, 192Event object, 189event string,189event-driven programming, 182, 191, 192exception, 3, 7, 15, 195, 198AttributeError,150, 199IndexError, 72, 78, 90, 199IOError,138KeyError, 104, 199NameError, 23, 198OverflowError, 46RuntimeError, 44SyntaxError, 19TypeError, 71, 74, 108, 116, 117, 136, 161,198UnboundLocalError, 111ValueError, 45, 107, 116exception, catching, 138executable, 2, 7exercise, secret, 143exists function, 137experimental debugging, 4, 133expression, 12, 13, 16bigand hairy, 200boolean, 39, 46extend method, 92factorial function, 56, 58False special value, 39Fermat’s Last Theorem, 47fibonacci function, 57, 109file, 135compression, 141permission, 138reading and writing,135fileobject, 81, 86filename, 137filter pattern, 93, 100find function, 74flag, 110, 113float function, 17float type, 9floating-point, 15, 67floating-point division, 12floor division, 12, 16, 46flow of execution, 21, 26, 58, 59, 64, 177, 191,198flower, 37folder, 137for loop, 30, 72, 91, 119formal language, 4, 8format operator, 136, 143, 198format sequence, 136, 143format string,136, 143frabjous, 56frame, 23, 26, 43, 57, 109Frame widget, 186Free Documentation License, GNU, v, vifrequency, 105letter,123word, 125, 134fruitfulfunction, 24, 26frustration,201function, 19, 25, 159abs, 52ack, 61arc, 31choice, 126circle, 31cmp, 172compare, 52deepcopy, 150dict, 103enumerate, 119eval, 69exists, 137factorial, 56fibonacci, 57, 109find, 74float, 17getattr, 166getcwd, 137hasattr, 150, 166int, 17isinstance, 58, 164len, 26, 72, 104list,95log, 18max, 117, 118min, 117, 118open, 81, 82, 135, 138, 139polygon, 31popen, 140randint, 100, 126random, 121, 126

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

Saved successfully!

Ooh no, something went wrong!