06.09.2021 Views

How to Think Like a Computer Scientist - Learning with Python, 2008a

How to Think Like a Computer Scientist - Learning with Python, 2008a

How to Think Like a Computer Scientist - Learning with Python, 2008a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Index 245<br />

element, 83, 96<br />

embedded reference, 136, 181, 190, 207<br />

encapsulate, 72<br />

encapsulation, 67, 134, 191, 196<br />

encode, 160, 167<br />

encrypt, 160<br />

equality, 132<br />

error<br />

compile-time, 221<br />

runtime, 5, 45, 221<br />

semantic, 5, 221, 227<br />

syntax, 4, 221<br />

error checking, 58<br />

error handling, 216<br />

error messages, 221<br />

escape sequence, 66, 72<br />

Euclid, 234<br />

eureka traversal, 78<br />

except statement, 124, 126<br />

exception, 5, 9, 124, 126, 221, 225<br />

executable, 9<br />

execution<br />

flow, 225<br />

expression, 17, 21, 194<br />

big and hairy, 228<br />

boolean, 37, 47<br />

expression tree, 209, 212<br />

fac<strong>to</strong>rial function, 55, 58<br />

Fibonacci function, 58, 111<br />

FIFO, 199, 206<br />

file, 117, 126<br />

text, 119<br />

float, 11<br />

floating-point, 21, 129<br />

flow of execution, 29, 35, 225<br />

for loop, 74, 86<br />

formal language, 6, 9<br />

format opera<strong>to</strong>r, 120, 126, 205, 225<br />

format string, 120, 126<br />

frabjuous, 55<br />

fraction, 231<br />

addition, 234<br />

comparison, 235<br />

multiplication, 232<br />

frame, 32, 35, 44, 112<br />

function, 27, 35, 71, 139, 148<br />

argument, 30<br />

boolean, 54, 167<br />

composition, 26, 53<br />

fac<strong>to</strong>rial, 55<br />

helper, 187<br />

math, 25<br />

parameter, 30<br />

recursive, 44<br />

tuple as return value, 99<br />

wrapper, 187<br />

function call, 23, 35<br />

function definition, 27, 35<br />

function frame, 32, 35, 44, 112<br />

function type<br />

modifier, 141<br />

pure, 140<br />

functional programming style, 142, 145<br />

fundamental ambiguity theorem, 190<br />

game<br />

animal, 216<br />

gamma function, 59<br />

generalization, 67, 134, 144<br />

generalize, 72<br />

generic data structure, 192, 193<br />

geometric sequence, 65<br />

Golfer, 205<br />

greatest common divisor, 234, 237<br />

guardian, 60<br />

handle exception, 124, 126<br />

handling errors, 216<br />

hanging, 223<br />

hello world, 8<br />

helper function, 187<br />

helper method, 190<br />

high-level language, 2, 9<br />

hint, 111, 115<br />

his<strong>to</strong>gram, 104, 105, 113

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

Saved successfully!

Ooh no, something went wrong!