CS 111 Resources
Python Resources
- Python home
- Download Python 3.1: Mac | Windows
Also download cTurtle.py here and copy it to the appropriate folder (as described in section A.2 of your book): - On a Mac: /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages
- On Windows: C:\Python3.1\lib\site-packages
- Python 3 documentation
- Text book web site
Example Programs
- Flower (Project 0)
- Pi approximation functions
- Accumulating interest
- Radioactive decay
- SIR model
- Visualization of Monte Carlo pi approximation
- Using dictionaries with temperature data (from class 3/3/11)
- Plotting earthquake data | Background image
- Tower of Hanoi
- Lindenmayer systems
- Grid class | Schelling simulation using the Grid class
- Solar system simulation (from the book)
- n-body simulation in 3D
- Fish school simulation
- VPython
- Documentation
- Examples: random walk | DLA | Percolation