tutorial questions (examples fail).

bowman bowman at montana.com
Sun Dec 26 11:22:41 EST 1999


Keith White <peche at dial.pipex.com> wrote:

>>>> def fib(n): # write Fibonacci series up to n
>... "Print a Fibonacci series up to n"

If this is literally what you are typing in, you are missing the
required indentation. Try

>>> def fib(n):
... 	print "in fib"
    ^ this is the indentation, which may be a tab or space(s), but
		  must be consistent from line to line.









More information about the Python-list mailing list