Today I was reading through python docs online and saw lambda(anonymous) functions, and works amazingly well for short logic.


It does with a variable and the function with no identity + function task:



add = lambda X: X+Y
print(add(2,3)
> 5

Using a pure function it would've been:


def add(n1, n2):
return n1 + n2
print(add(2,3))

So.. the ball is in your court...code cleanly