[Tutor] finding factorials - hmm..., gcd
Payal Rathod
payal-python@staticky.com
Wed Jul 2 07:54:02 2003
Hi,
Thanks for the mail and the explanation. It was splendid. Along with
another offlist explanation by a member I got it fitted in quite ok.
I have written my own recursive function (a function calling itself).
Just have a look please. Before you shudder with the thought of
answering it, I say just look and if you feel like it comment. It is an
infinite function. It goes on repetatively.
#!/usr/bin/python
def rec_fun():
print a
rec_fun()
a = 10
rec_fun()
BTW OT, if I want to redirect the errors an output to a file why does this
not work?
$ python rec1.py 2>&1 > temp
Is it writting on some different file handle?
Thanks a lot and bye
-Payal
--
"Visit GNU/Linux Success Stories"
http://payal.staticky.com
Guest-Book Section Updated.