Chapter 3 Comprehension Questions

  1. How are functions examples of encapsulation? How are they examples of abstraction?
  2. Explain the following: “you only need to know what the function does, not how it does it”.
  3. How can you tell the difference between the function header and the function body?
  4. Why must our indentation be consistent in Python?
  5. Why must we call a function after it is defined?
  6. What are the characteristics of good comments?
  7. What is a docstring and how is it different than other types of comments?
  8. What are the differences between arguments and parameters?
  9. What are the main reasons for writing functions?