What Did we Learn and What to Expect in Assignment 5

Summary

Students are now expected to be able to:

  • Explain the DRY principle and how it can be useful.
  • Write conditional statements with if, elif and else to run different code, depending on the input.
  • Write for loops to repeatedly run code.
  • Describe the expected outcome of code with nested loops.
  • Define and use a function that accepts parameters and returns values.

Attribution

The cereal dataset:

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

On to Assignment 5!