• Works in the console, max recursion limit in test

Question related to mission Univocalic Factaral

 

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?