Programming assignment – python functions


Your assignment is to read through Chapter 5 – Python Functions and Modularity (included in this week’s Canvas module) and then complete one of two exercises at the end of the Chapter — either  Exercise 5 – International Gymnastics Scoring or Exercise 6 – Test for Divisibility.

You only need to submit the Python source code file, but as the example in the chapter shows, creating your software by

  1. starting with notes,
  2. turning those into comments,
  3. then writing the code to do what the comments say to do

It is a good design process that will help you to manage the growing complexity of the software we are developing. It helps to separate  the logical development of the algorithm from the language of creating the source code.