CS 074 The Digital World
Spring 2008
Computer Science Department
The College of Arts and Sciences
Boston College

About Syllabus Textbooks Grading
Staff Problem Sets Projects WebCT
Resources News Stand Python
This course includes a module covering how to write simple programs in the popular programming language python. Python can be used on either a Mac or a Windows system. You can download Windows and Mac OS X implementations of the most recent version of python (i.e., version 2.5.1) here. NB: if you have a Mac, you already have python on your computer. You should check to ensure that this version isn't out of date. You can check by typing
> python --version
at the command line.

  1. Python Reference;

  2. Python Tutorial This is the "official" tutorial by the inventor of Python, Guido van Rossum.

  3. Tutorial : Instant Hacking python Tutorial This is an alternative tutorial.

  4. Reference : turtle module documentation;

Some Examples of Python Source Code

  1. tumble.py; Python functions that cause a block to tumble across the turtle graphics window.

  2. lists.py; Python functions that work with lists.

  3. slide.py; Python functions that uses the turtle graphics module to slide a block across a window.

  4. search.py; linear and binary search.

  5. stripes.py; turtle graphics drawing stripes.

  6. checks.py; turtle graphics drawing checks.



Last updated on 1-14-2008.