0

For example:

f = lambda x: x

and

def f(x):
   return x

What is the difference between those two methods of defining the function f?

  • 3
    Does this answer your question? [what is the difference for python between lambda and regular function?](https://stackoverflow.com/questions/12264834/what-is-the-difference-for-python-between-lambda-and-regular-function) – rchome Feb 04 '22 at 10:25

0 Answers0