Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 31-Oct-2006 A Python Tutorial Kurt Schwehr 31 Oct 2006
Where is python on my machine?
Fink for unix software
Fink Commander
Emacs Cheat Sheet
Setting up ~/.emacs
Getting started
Strings
Getting help with the ‘tab’ key
More string operations
Lists are created with [ ]
The math module
Getting help on functions
More help
from math import *
The Decimal module
Converting between strings and numbers
If tests and indentation matters
for loops
Reading a file Adding a comma prevents the extra new line
Reading numbers from a file