[Tutor] recursion sort of
Magnus Lyckå
magnus@thinkware.se
Thu May 29 17:07:02 2003
At 14:55 2003-05-29 -0500, Jennifer Cianciolo wrote:
>def run(n1, n2):
> while n1>=501:
> w=1
> n1=n1*w
> while n1<=500:
> w=0.2
> n1=n1*W
> while n2>=501:
> w=0.8
> n2=n2*w
> while n2<=500:
> w=0.4
> n2=n2*W
> nt=n2+n1
> print nt
Is this a school assignment? It would be helpful if you would be
clear in stating such things so that we know how to respond. We're
not supposed to do your assignments for you...
--
Magnus Lycka (It's really Lyckå), magnus@thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The shortest path from thought to working program