New course! Every coder should learn Generative AI!
Try a free lesson0
Why the function return 24?
def func(num): g=(lambda x:1 if x==1 else x*g(x-1)) return g(num) print(func(4))
0 Answers
def func(num): g=(lambda x:1 if x==1 else x*g(x-1)) return g(num) print(func(4))