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.
-
Python Reference;
-
Python Tutorial
This is the "official" tutorial by the inventor of Python, Guido van
Rossum.
-
Tutorial : Instant Hacking python Tutorial This is an alternative tutorial.
-
Reference : turtle module documentation;
Some Examples of Python Source Code
-
tumble.py; Python functions that cause
a block to tumble across the turtle graphics window.
-
lists.py; Python functions that work with lists.
-
slide.py; Python functions that uses the
turtle graphics module to slide a block across a window.
-
search.py; linear and binary search.
-
stripes.py; turtle graphics drawing stripes.
-
checks.py; turtle graphics drawing checks.
|