Re: Iteration for Factorials



Tim Golden wrote:

From the cookbook, this time.
It satisfies the requirements nicely ;)

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496691

[... snip the ultimate general-purpose answer to the OP's question ...

I really hope that's a wink up there, Marco.

The wink is in the second line of my post... more for the "do the least amount of work to meet the requirements" people that for the OP

The poor guy was just trying to get his homework done!

I don't see how my answer is in any way worse than those based on lambda. Maybe I'm just envious because when I was his age I couldn't google for answers. He should at least be able to do that, shouldn't he?
But wait. That would mean understanding what a factorial is. That would require a second search, or a textbook, or an understanding of arithmetics before programming with or without recursion. Should we blame the teachers?
.



Relevant Pages

  • Re: Original Sin
    ... "Because no amount of such analysis would ever give answers ... to questions about phenomenal consciousness." ... understand by analysis of the brain and body." ... But understanding something is ...
    (uk.religion.christian)
  • Re: The ohshittosecond
    ... >>> I was of the understanding that the ohnosecond was the amount of time ... >>> In this case you would have to add human sensory response and reaction ...
    (sci.electronics.design)
  • Re: In the Front Offices defense...
    ... "understanding," no matter how minimally it was understood, you're fooling ... But those pretend GMs we had at the time are no dummies (although maybe ... Did you happen to hear Bronson himself today? ... There was NO handshake, wink, wink, nothing more than he was told they ...
    (alt.sports.baseball.bos-redsox)
  • Re: 61% of Americans believe what?
    ... Geeze, Michael, whatever makes you think Marco passes by ... Folks with even a modicum of understanding ... in this NG run shrieking from the room but Phil's 61 percenters scratch ... Yada, yada, yada. ...
    (sci.anthropology.paleo)
  • Re: DOVE progress?
    ... census. ... That was put on a single site and they severely underestimated the ... amount of interest there would be. ... My understanding is that the new ...
    (soc.genealogy.britain)