Python Programming: An Introduction to Computer Science

(Nora) #1
INDEX 245

description, 176
Dijkstra,Edsgar, 2
disk, 3
distancefunction, 96
division, 29
docstring, 171
dotnotation,8, 59, 67
draw, 82
drawBar, 91
duplication,seecodeduplication


Easter, 120
elif, 111
emptylist, 186
emptystring, 128
encapsulation,170, 228
encoding, 46
algorithm, 47
program, 47
encryption, 50
Entry, 79, 83
environment,programming, 7
epact, 39
equality, 105
Eratosthenes, 206
errorchecking, 112
errors
KeyError, 201
mathrange, 30
name,16, 42
overflow, 33
Euclid’s algorithm, 140
eval, 49
event, 77
eventloop, 179
event-driven, 77
examgrader, 61, 120
exceptionhandling, 112
exponentialnotation, 35
expression
asinput, 18
Boolean,106, 131
definitionof, 15
spacesin, 16


face,85, 180
fact.py, 236
factorial
definitionof, 31
program,32, 35
recursive definition, 235
factorial.py, 32
factorial2, 35
Fahrenheit, 13


fetchexecutecycle, 3
Fibonaccinumbers,39, 140
file, 55
closing, 56
opening, 56
processing, 56
programtoprint, 57
readoperations, 56
representation, 55
writeoperations, 57
float, 28
literal, 28
representation, 35
floppy, 3
flowchart, 22
flowcharts
forloop, 22
if semantics, 105
loopanda halfsentinel, 137
max-of-threedecisiontree, 116
max-of-threesequentialsolution, 117
nesteddecisions, 111
post-testloop, 135
temperatureconversionwithwarnings, 104
two-waydecision, 109
whileloop, 125
flush, 81
forstatement(forloop),21, 123
ascountedloop, 22
flowchart, 22
semantics, 21
syntax, 21
usingsimultaneousassignment, 196
formalparameter, 93
formatspecifier, 53
from..import, 64
function, 6
actualparameters, 93
arguments, 93
asparameter, 203
asblackbox, 207
assubprogram, 88
call,6, 93
createLabeledWindow, 98
defining,6, 93
formodularity, 97
invoking,seefunction,call
missingreturn, 97
multipleparameters, 94
Noneasdefaultreturn, 97
parameters, 6
recursive, 236
returnvalue, 95
returningmultiplevalues, 96
Free download pdf