The lambda statement can appear in places where the def is not allowed. I have attached one example for your reference.
alist = [lambda m:m**2, lambda m,n:m*n, lambda m:m**4]
print(alist(10), alist(2, 20), alist(3))
I hope this will give you some ideas.