Ad

The above code has two problems:

-It's calling itself recursively (an infinite loop).

-You're writing Python's built-in sum() function, which is bad practice.

If what you want is a lambda function to add two numbers, I left a new code!

Code
Diff
  • add = lambda a, b: a + b
    • #
    • add = lambda a, b: a + b