by im3w1l · 6y ago · 0 comments
def a(n):
def b():
print(n)
return bIt is annoying that you have to give the function a name, though.
def b(x):
return x + 1
vs x => x + 1 def a(n):
return lambda: print(n)