Recitation 9a (Jan 2, 2012)

Code examples

Example 1: iterators and generators


Download (right click -> save link as "ex1.py")

Example 2

Download matrix.py with display method.

Sierpiński's carpet


Download (right click -> save link as "carpet.py")

Julia and Mandelbrot sets

(this code is a bit modified from what seen in recitation; see the exact code from there in the interpreter log)


Download (right click -> save link as "julia.py")

Interpreter session log

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License