- 6.1: Programmers rarely define their own functions.
- 6.2: A function may only be called at one place in a program.
- 6.3: Information can be passed into a function through parameters.
- 6.4: Every Python function returns some value.
- 6.5: In Python, some parameters are passed by reference.
- 6.6: In Python, a function can return only one value.
- 6.7: Python functions can never modify a parameter.
- 6.8: One reason to use functions is to reduce code duplication.
- 6.9: Variables defined in a function are local to that function.
- 6.10: It's a bad idea to define new functions if it makes a program longer.
- 6.11: Write and test a function to meet this specification. squareEach (n...
- 6.12: Write and test a function to meet this specification. sumList (nums...
- 6.13: Write and test a function to meet this specification. toNumbers (st...
- 6.14: Use the functions from the previous three problems to implement a p...
- 6.15: Write and test a function to meet this specification. drawFace (cen...
- 6.16: Use your drawFace function from the previous exercise to write a ph...
- 6.17: Write a function to meet this specification. move To (shape, newCen...
Solutions for Chapter 6: Defining Functions
Full solutions for Python Programming: An Introduction to Computer Science | 3rd Edition
A slow motion of Earth’s axis that traces out a cone over a period of 26,000 years.
The level below which a stream cannot erode.
A term used to describe intrusive igneous masses that form parallel to the bedding of the surrounding rock.
The slow downhill movement of soil and regolith.
An orderly arrangement of atoms.
The land area that contributes water to a stream.
The boundary between two adjoining air masses having contrasting characteristics.
A fountain of hot water ejected periodically.
A coating of ice on objects formed when supercooled rain freezes on contact.
An instrument designed to measure relative humidity.
Law of conservation of angular momentum
The product of the velocity of an object around a center of rotation (axis), and the distance squared of the object from the axis is constant.
A body of molten rock found at depth, including any dissolved gases and crystals.
Mohorovicˆi´c; discontinuity (Moho)
The boundary separating the crust from the mantle, discernible by an increase in seismic velocity.
A series of 10 minerals used as a standard in determining hardness.
An imaginary volume of air enclosed in a thin elastic cover. Typically it is considered to be a few hundred cubic meters in volume and is assumed to act independently of the surrounding air.
Fog resulting from radiation heat loss by Earth.
A mechanism that contributes to plate motion in which cool, dense oceanic crust sinks into the mantle and “pulls” the trailing lithosphere along.
Small solar system bodies
Solar system objects not classified as planets or moons that include dwarf planets, asteroids, comets, and meteoroids.
An area where snow persists yearround.
Ice crystals instead of dew that form on surfaces when the dew point is below freezing.