From: Erik M. Bray Date: Fri, 24 May 2013 01:38:46 +0000 (-0400) Subject: Practiced what we preach in the exercise solutions. Updated the Readme with a hint. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd79f1e2c634a1b7829dc3535da6f211c040abc8;p=swc-testing-nose.git Practiced what we preach in the exercise solutions. Updated the Readme with a hint. W. Trevor King: I dropped everything from the original 9448bfa except for the python/sw_engineering/ modifications. Conflicts: python/intro/Exercise_solutions.ipynb --- diff --git a/python/sw_engineering/README.md b/python/sw_engineering/README.md index 423c18b..791f374 100644 --- a/python/sw_engineering/README.md +++ b/python/sw_engineering/README.md @@ -21,10 +21,21 @@ Exercises Exercise 1 ---------- -Make a new text file called `animals.py`. Copy the file reading -function from yesterday's IPython notebook into the file and modify it -so that it returns the columns of the file as lists (instead of printing -certain lines). +Make a new text file called `animals.py`. Copy the file reading function from +this morning's IPython notebook into the file and modify it so that it returns +the columns of the file as lists (instead of printing certain lines). + +Hint: Before the loop create an empty lists like: + + times = [] + dates = [] + # etc... + +In the loop use: + + times.append(...) # Replace the ... with the appropriate variable + dates.append(...) + # etc... Exercise 2 ----------