This document discusses different types of loops in Python chapter four. It defines condition-controlled loops, which use a true/false condition to control the number of repetitions, and count-controlled loops, which repeat a specific number of times. Each repetition is called an iteration. A while loop is a condition-controlled loop that repeats until the program is interrupted if there is no way to end. The -= operator is an example of a decrement operator, and an accumulator variable keeps a running total. A sentinel is a special value that signals there are no more items from a list to process and cannot be mistaken as a list item. GIGO stands for "garbage in, garbage out."
This document discusses different types of loops in Python chapter four. It defines condition-controlled loops, which use a true/false condition to control the number of repetitions, and count-controlled loops, which repeat a specific number of times. Each repetition is called an iteration. A while loop is a condition-controlled loop that repeats until the program is interrupted if there is no way to end. The -= operator is an example of a decrement operator, and an accumulator variable keeps a running total. A sentinel is a special value that signals there are no more items from a list to process and cannot be mistaken as a list item. GIGO stands for "garbage in, garbage out."
This document discusses different types of loops in Python chapter four. It defines condition-controlled loops, which use a true/false condition to control the number of repetitions, and count-controlled loops, which repeat a specific number of times. Each repetition is called an iteration. A while loop is a condition-controlled loop that repeats until the program is interrupted if there is no way to end. The -= operator is an example of a decrement operator, and an accumulator variable keeps a running total. A sentinel is a special value that signals there are no more items from a list to process and cannot be mistaken as a list item. GIGO stands for "garbage in, garbage out."
1. A________-controlled loop uses a true/false condition to
control the number of times that is repeats. 2. A________-controlled loop repeats a specific number of times. 3. Each repetition of loop is known as a ___________. 4. The while loop is a__________ type of loop. 5. A________ loop has no way of ending and repeats until the program is interrupted. 6. THE -= operator is an example of a _____________operator. 7. A______________ variable keeps running total. 8. A__________ is a special value that signals when there are no more items from a list of items to be processed. This value cannot be mistaken as an item from the list. 9. GIGO stands for______________.