Please send questions to st10@humboldt.edu .
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) 
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************
    
IDLE 1.2      

>>> license()

A. HISTORY OF THE SOFTWARE
==========================

Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
as a successor of a language called ABC.  Guido remains Python's
principal author, although it includes many contributions from others.

In 1995, Guido continued his work on Python at the Corporation for
National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
in Reston, Virginia where he released several versions of the
software.

In May 2000, Guido and the Python core development team moved to
BeOpen.com to form the BeOpen PythonLabs team.  In October of the same
year, the PythonLabs team moved to Digital Creations (now Zope
Corporation, see http://www.zope.com).  In 2001, the Python Software
Foundation (PSF, see http://www.python.org/psf/) was formed, a
non-profit organization created specifically to own Python-related
Intellectual Property.  Zope Corporation is a sponsoring member of
the PSF.

All Python releases are Open Source (see http://www.opensource.org for
Hit Return for more, or q (and Return) to quit: q

>>> # a single-line comment

>>> print 3+5
8

>>> print "hello world"
hello world

>>> print 'hello world'
hello world

>>> 3 + 5
8

>>> 3 - 5
-2

>>> 3 * 5
15

>>> 3 / 5
0

>>> 3.0 / 5
0.59999999999999998

>>> 3 ** 3
27

>>> import hello1

Traceback (most recent call last):
  File "<pyshell#14>", line 1, in <module>
    import hello1
ImportError: No module named hello1

>>> # want to use python scripts from another directory
>>> import sys

>>> sys.path
['/Users/smtuttle/Documents', '/Applications/MacPython 2.5/IDLE.app/Contents/Resources', '/Applications/MacPython 2.5/IDLE.app/Contents/Resources', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages']
>>> sys.path.append("/Users/smtuttle/Humboldt/to-back-up/f06cis180py/180py_lectures/180py_lect01")

>>> import hello1
hello
256

>>> def halve(val):
	return val / 2.0

>>> halve(3)
1.5

>>> halve(3)
1.5

>>> halve(6)
3.0

>>> halve("hello")

Traceback (most recent call last):
  File "<pyshell#26>", line 1, in <module>
    halve("hello")
  File "<pyshell#22>", line 2, in halve
    return val / 2.0
TypeError: unsupported operand type(s) for /: 'str' and 'float'

>>> 3 / 5
0

>>> 3 / 5.0
0.59999999999999998

>>> 3.0 / 5
0.59999999999999998

>>> import halve
>>> halve.halve(3)
1.5

>>> name

Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    name
NameError: name 'name' is not defined

>>> name = "Spam"
>>> name
'Spam'

>>> name = 3
>>> name
3

>>> name + 6
9

>>> type(6)
<type 'int'>

>>> type(6.0)
<type 'float'>

>>> type("hello")
<type 'str'>

>>> name = 3
>>> type(name)
<type 'int'>

>>> name= 3
>>> name = "string"
>>> type(name)
<type 'str'>

>>>