• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
0

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))

pythonlambda
19th May 2020, 1:08 PM
Gleboffsky
Gleboffsky - avatar
1 Resposta

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Fix Rivers in 2D Terrain Map Generator
3 Votes
Question on 50- win badge
0 Votes
How the operators and commands in this code are executed?
1 Votes
Will I get the certificate for free if I completed the free course of web development (I am not on pro subscription)
0 Votes
Combination
0 Votes
i am begineer
0 Votes
Crane
1 Votes
Correct version of program
0 Votes
How to make a website
0 Votes
I finished introduction to python
0 Votes