Skip to main content

Chapter 49 Quiz

Before taking the quiz, verify that you can do each of these without looking at the lessons:

  • Write a multi-parameter signature: Create a function with 2-3 typed parameters and a return type
  • Explain return vs print: Say why return gives a reusable value and print() gives None
  • Use default values: Write a function with a meaningful default and call it both ways
  • Write a what-style docstring: Describe what a function does without revealing how
  • Describe the TDG cycle: List the five steps from stub to passing tests

If any feel uncertain, revisit the specific lesson before continuing.

Test your understanding of function signatures, defaults, keyword arguments, docstrings, and the TDG cycle by solving real-world scenarios.

Checking access...