From bd79f1e2c634a1b7829dc3535da6f211c040abc8 Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Thu, 23 May 2013 21:38:46 -0400 Subject: [PATCH] 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 --- python/sw_engineering/README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 ---------- -- 2.26.2