CS 228: Python Examples
Click here to return to the schedule

Date File Notes
09/06/2013 prime.py simple primality test
09/13/2013 sets.py lists, sets, and tuples
09/30/2013 playoff.py counting "best k of n"
10/02/2013 permcomb.py permutations, combinations
10/02/2013 pascal.py compute Pascal's triangle
10/07/2013 montyhall.py Monty Hall simulation
10/07/2013 genseq.py recursive generator function
10/14/2013 relations.py properties of relations
10/18/2013 dicts.py how dictionaries work
11/01/2013 floyd.py Floyd's algorithm (p. 717)
11/11/2013 bfs.py breadth-first search (p. 791)

P.S. Don't foget to check out pythontutor.com!