|
| 1 | +#Module 9 Lab 2 |
| 2 | + |
| 3 | +We lover iris flowers in this class. Let's return to the[iris.csv](https://github.com/summerela/intro_programming_python/blob/master/Module6/iris.csv) dataset in this lab and try to write our simple statistics |
| 4 | +inside classes. |
| 5 | + |
| 6 | +##Instructions: |
| 7 | + |
| 8 | +0. Copy`lab2.py` to your workspace |
| 9 | + |
| 10 | +0. Look for`TODO1` in the code. Can you finish writing this function without accessing any variables outside of the`IrisStats` class? |
| 11 | + |
| 12 | +0. Look for`TODO2` in the code. Can you finish writing this function without accessing any variables outside of the`IrisStats` class? |
| 13 | + |
| 14 | +0.`TODO3` is for the wonks who finish the first two. The idea is that we don't want to read the csv for every statistical function we write |
| 15 | +because it's repetative. There should be multiple ways to write the code to read the file once and cache the iris data that comes back. |
| 16 | +This can be done in the`IrisReader` or`IrisStats` class. So the options are open |