On 11/11/05, john boy <[EMAIL PROTECTED]> wrote:
> I have adjusted the program to:
>
> import sys.
> sys. getrecursionlimit()
> sys.setrecursionlimit(2000)
> def countdown (n):
>if n ==0:
>print "blastoff"
> else:
> print n
> countdown (n-1)
> countdown
On 11/11/05, john boy <[EMAIL PROTECTED]> wrote:
> 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 (10
On Nov 11, john boy wrote:
>I am running the following program from the example in "how to
>think like a computer scientist"
>...
>When I set "n"= 1000 the program runs in interpreter and stops
>counting down at 14 instead of running all the way to "Blastoff".
>Why is this
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 stop