• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • 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 Respuesta

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Can i code here? Or just learn?
0 Votes
Hi, please I'm interested in learning Html, css and Javascript. I need a guidance or any app recommendation that will make me
1 Votes
Why Lazy?
1 Votes
Please help a beginner choose a programming language
2 Votes
hi i want to learn C# but i don't have a good tut
1 Votes
Quiz App: Step 3, Restart Button
0 Votes
Catch the ball
0 Votes
It's app not running properly?
1 Votes
Web development
0 Votes
PHP
0 Votes