westkill:illipython gfrancis$ python Python 2.4.3 (#1, Jan 10 2007, 12:05:23) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 1 + 1 2 >>> for i in range(10): ... print i ... 0 1 2 3 4 5 6 7 8 9 >>> print hello Traceback (most recent call last): File "", line 1, in ? NameError: name 'hello' is not defined >>> print "hello" hello >>> a = 1 >>> b = 1 >>> c = a + b >>> print c 2 >>> for i in range(10): ... a=b ... b=c ... c = a+b ... print c ... 377 610 987 1597 2584 4181 6765 10946 17711 28657 >>> a = 1 >>> b = 1 >>> for i in range(10): ... c = a + b ... print c ... a = b ... b = c ... 2 3 5 8 13 21 34 55 89 144 >>> def fib(x,y): ... z = x + y ... print z ... x = y ... y = z ... >>> fib(1,1) 2 >>> def fib(xin, yin): ... x = xin ... y = yin ... for i in range(20): ... z = x+y ... print z ... x = y ... y = z ... >>> fib(1,1) 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 >>>