In addition to the concepts below, you should also know the
concepts from Quiz 1,
Quiz 2, and Quiz 3.
Many of the earlier concepts -- especially functions -- are fundamental
to what we've been studying recently.
You should be able to define the following terms:
- definite loop
- indefinite loop
- top-down design
- bottom-up implementation
- unit testing
- stubbed-out function
- pseudocode
You should understand and be able to use the following Python concepts:
- while loops
- for loops
- the list append() method
- accumulating a list within a loop
Practice problems:
- Write a for loop that prints out all even numbers from 2 to 20.
- Write a while loop that prints out all even numbers from 2 to 20.
- Given any specific definite (for) loop, write an indefinite (while) loop
that performs the same computation.
- Write a function randList(size, low, high) that returns
a list of random numbers of length size containing values
between low and high.
- Multiple choice problems 1,2,5 on page 260 (Chapter 8)
- Discussion questions 3 on page 261
include("../style/footer.php"); ?>