Intro to
Programming
with Python

Fall 2010
course
navigation

nov 9

Go over the homework. I've attached a shuffle and sieve example below, both using a functional approach.
In class:
Next week's assignment is posted.
If time allows, discuss and set-up the "random walk", pg 382 #18. We started thinking about this; very preliminary code is attached.
Question: doctests with raw_input? Answer: see attached.
http://cs.marlboro.edu/ courses/ fall2010/python/ notes/ nov_9
last modified Tuesday November 9 2010 10:42 am EST

attachments [paper clip]

     name last modified size
   input_test.py Nov 8 2010 5:58 pm 1.03kB    random_walk.py Nov 9 2010 10:42 am 766B    shuffle.py Nov 8 2010 2:45 pm 953B    sieve.py Nov 8 2010 2:45 pm 3.03kB