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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Index 247<br />

well-formed, 189<br />

list deletion, 89<br />

list method, 114, 163<br />

list operation, 87<br />

list traversal, 96<br />

literalness, 7<br />

local variable, 31, 35, 69<br />

logarithm, 64<br />

logical opera<strong>to</strong>r, 37, 38<br />

long integer, 113<br />

loop, 63, 72<br />

body, 63, 72<br />

condition, 224<br />

for loop, 74<br />

in list, 185<br />

infinite, 63, 224<br />

nested, 163<br />

traversal, 74<br />

while, 62<br />

loop variable, 72, 171, 183<br />

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

lowercase, 80<br />

map <strong>to</strong>, 160<br />

math function, 25<br />

mathematical opera<strong>to</strong>r, 232<br />

matrix, 94<br />

sparse, 110<br />

McCloskey, Robert, 75<br />

mental model, 227<br />

method, 109, 115, 139, 148, 158<br />

dictionary, 109<br />

initialization, 152, 163<br />

invocation, 109<br />

list, 114, 163<br />

model<br />

mental, 227<br />

modifier, 141, 145<br />

modifying lists, 186<br />

module, 25, 35, 79<br />

copy, 135<br />

string, 80<br />

modulus opera<strong>to</strong>r, 37, 47, 171<br />

multiple assignment, 61, 72<br />

multiplication<br />

fraction, 232<br />

mutable, 77, 81, 97<br />

list, 88<br />

object, 134<br />

mutable type, 105<br />

NameError, 225<br />

natural language, 6, 9, 131<br />

negation, 236<br />

nested list, 94, 96, 110<br />

nested structure, 159<br />

nesting, 47<br />

newline, 72<br />

node, 181, 190, 207, 219<br />

Node class, 181<br />

None, 50, 60<br />

number<br />

random, 99<br />

numera<strong>to</strong>r, 231<br />

object, 91, 96, 129, 137<br />

list of, 163<br />

mutable, 134<br />

object code, 9<br />

object instance, 130, 148, 162<br />

object invariant, 189<br />

object-oriented design, 169<br />

object-oriented programming, 147, 169<br />

object-oriented programming language,<br />

147, 158<br />

operand, 17, 21<br />

operation<br />

dictionary, 108<br />

list, 87<br />

opera<strong>to</strong>r, 17, 21<br />

binary, 209, 219<br />

bracket, 73<br />

conditional, 162<br />

format, 120, 126, 205, 225<br />

in, 86, 166<br />

logical, 37, 38

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

Saved successfully!

Ooh no, something went wrong!