- 8.1: A Python while implements a definite loop.
- 8.2: The counted loop pattern uses a definite loop.
- 8.3: A sentinel loop asks the user whether to continue on each iteration.
- 8.4: A sentinel loop should not actually process the sentinel value.
- 8.5: The easiest way to iterate through the lines of a file in Python is...
- 8.6: A while is a post-test loop.
- 8.7: The Boolean operator or returns True when both of its operands are ...
- 8.8: a and (b or c) == (a and b) or (a and c)
- 8.9: not(a or b) -- (not a) or not(b)
- 8.10: True or False
- 8.11: Heating and cooling degree days are measures used by utility compan...
- 8.12: Modify the previous program to get its input from a file.
- 8.13: Write a program that graphically plots a regression line-that is, t...
- 8.14: Write a program that converts a color image to grayscale. The user ...
- 8.15: Write a program to convert an image to its color negative. The gene...
- 8.16: Modify the event_loop3 program to use the key as described in the t...
Solutions for Chapter 8: Loop Structures and Booleans
Full solutions for Python Programming: An Introduction to Computer Science | 3rd Edition
A subdivision of the mantle situated below the lithosphere. This zone of weak material exists below a depth of about 100 kilometers and in some regions extends as deep as 700 kilometers. The rock within this zone is easily deformed.
The bright lines produced by an incandescent gas under low pressure.
A large group of stars.
One of three basic cloud forms; also the name given one of the clouds of vertical development. Cumulus are billowy individual cloud masses that often have flat bases.
The portion of seafloor that lies between the continental margin and the oceanic ridge system. This region comprises almost 30 percent of Earth’s surface.
A type of unconformity in which the beds above and below are parallel.
See Bright-line spectrum
A method of locating stellar objects much like the coordinate system used on Earth’s surface.
A coating of ice on objects formed when supercooled rain freezes on contact.
A compositional group of igneous rocks that indicates a rock is composed almost entirely of light-colored silicates.
A mass of glacial ice covering a high upland or plateau and spreading out radially.
A looplike bend in the course of a stream.
The processes that collectively result in the formation of mountains.
A layer beneath the mantle about 2,200 kilometers (1,364 miles) thick that has the properties of a liquid.
An igneous texture consisting of large crystals embedded in a matrix of much smaller crystals.
Positive feedback mechanism
A feedback mechanism that enhances or drives change.
A model that illustrates the origin of the three basic rock types and the interrelatedness of Earth materials and processes.
Secondary (S) wave
A seismic wave that involves oscillation perpendicular to the direction of propagation.
A storm produced by a cumulonimbus cloud and always accompanied by lightning and thunder. It is of relatively short duration and usually accompanied by strong wind gusts, heavy rain, and sometimes hail.
The disintegration and decomposition of rock at or near Earth’s surface.