Session 20 Preparation — Videos, Reading and Quizzes
Instructions:
There is no quiz associated with this preparation.
But NOTE THE ITEM BELOW.
Videos and Reading:
Here are the main concepts that you can expect on Exam 3.
For each concept, be sure that you can apply that concept to implement solutions to coding problems.
The wait-until-event pattern and using while statements to implement that
pattern.
How to access the kth item in a sequence.
How to access the first item in a sequence (indices start at 0, not 1).
How to access the last item in a sequence using the len function.
The distinction between an index and the item at that index.
Using the three-argument form of a RANGE expression
to loop through some or all of a sequence.
Using IF statements inside the loop to select items in the sequence
that meet a given condition, accessing and/or setting those items.
The various patterns for looping through a sequence, including:
The FIND pattern for finding the first item in a sequence that meets a given condition.
The MAX/MIN pattern for finding the item in the sequence that is biggest (or smallest)
per some given condition.
The two-places-at-once pattern wherein, at each iteration of the loop, the code accesses
the sequence at more than one index.
The parallel-sequences pattern wherein the code loops through two sequences in parallel,
examining index k of each sequence at each iteration of the loop.