EECS110 Homework 3, Spring 2018

 

Due: 11:59pm on Sunday 04/29

 

Submission: submit your solutions on Canvas

 

Problems:

Problem 1: Evolving Lists and Lights On! (hw3pr1.py) [35 points; individual or pair]

 

Problem 2: Caesar Cipher (hw3pr2.py) [35 points; individual or pair]

 

Problem 3: Looks Good! (hw3pr3.py) [30 points; individual or pair]

 

 

Overall Instructions

Each of these questions asks you to write several short Python functions and/or an English response. Please place all of your answers for problems 2 and 3 into a Python plain-text file named hw3pr1.py, hw3pr2.py, or hw3pr3.py (changing the problem number as appropriate). Please use the function names suggested by the problems - this will help us grade things!

 

Docstrings and Comments

Every function that you write must have a docstring. The docstring should explain how many inputs the function takes, what these inputs are supposed to be, and what the function returns. The doctring is intended for the user of your function. In contrast, comments in your code are used to explain details that are important to a programmer who might be reading your code (that "programmer" could be you - it's easy to forget what you had in mind when you wrote your code!). Any function that is doing anything even modestly complex or non-obvious deserves some explanatory comments. We'll look for your docstrings and comments, so be sure to include them.