Chapter 8 Flashcards Preview

Python > Chapter 8 > Flashcards

Flashcards in Chapter 8 Deck (5)
Loading flashcards...
1
Q

abstraction

A

Generalization by reducing the information content of a concept. Functions in Python can be used to group a number of program statements with a single name, abstracting out the details and making the program easier to understand.

2
Q

constant

A

A numerical value that does not change during the execution of a program. It is conventional to use names with all uppercase letters to repesent constants, though Python programs rely on the discipline of the programmers to enforce this, since there is no language mechanism to support true constants in Python.

3
Q

nested loop

A

A loop inside the body of another loop.

4
Q

random

A

Having no specific pattern. Unpredictable. Computers are designed to be predicatable, and it is not possible to get a truly random value from a computer. Certain functions produce sequences of values that appear as if they were random, and it is these psuedorandom values that we get from Python.

5
Q

trichotomy

A

Given any real numbers a and b, exactly one of the following relations holds: a < b, a > b, or a = b. Thus when you can establish that two of the relations are false, you can assume the remaining one is true.