I am running the following program from the example in "how to think like a computer scientist"
def countdown(n):
if n ==0:
print "Blastoff!"
else:
print n
countdown (n-1)
countdown (1000)
When I set "n"= 1000 the program runs in interpreter and stops counting down at 14 instead of running all the way to "Blastoff". If I set n = 985 it completes the program. If I set n=1200 it runs to 214 and stops. Why is this program only counting to 986....Anybody have an answer??
I am using Python 2.4.2
Yahoo! FareChase - Search multiple travel sites in one click.
-- http://mail.python.org/mailman/listinfo/python-list