Light Mode
Dark Mode
Works in the console, max recursion limit in test

Here is the code:

a_factaral=lambda n:n*((n-1 and a_factaral(n-1)-1)+1)

It works fine in the console. Any idea why it fails with max recursion error during the actual test?

Created: April 22, 2015, 2:28 p.m.
Updated: Aug. 13, 2015, 10:30 p.m.
0
11
User avatar
lainverse