|
|
|
|
|
by sillysaurus3
3724 days ago
|
|
It's not really limited. You just have to name your lambda before you use it. def make_adder(n):
def f(a):
return n + a
return f
Using this style, you can make the inner function as complicated as you want. You can have statements, or anything else. |
|