What Did we Learn and What to Expect in Assignment 6

Summary

Students are now expected to be able to:

  • Evaluate the readability, complexity and performance of a function.
  • Write docstrings for functions following the NumPy/SciPy format.
  • Write comments within a function to improve readability.
  • Write and design functions with default arguments.
  • Explain the importance of scoping and environments in Python as they relate to functions.
  • Formulate test cases to prove a function design specification.
  • Use assert statements to formulate a test case to prove a function design specification.
  • Use test-driven development principles to define a function that accepts parameters, returns values and passes all tests.
  • Handle errors gracefully via exception handling.

Attribution

The cereal dataset:

80 Cereals” (c) by Chris Crawford is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported

On to Assignment 6!