On Thu, 2011-02-10 at 13:57 +0530, Chandrashekar Babu wrote: > And here's the pythonic way: > factorial = lambda n: n and n*factorial(n-1) or 1
lambda is not considered pythonic (by guido anyway) -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
