Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51b3a7b

Browse files
authored
Create Lab2.md
1 parentf056660 commit51b3a7b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎Module9/Lab2.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp