About lambda usage:
Basically the same lambda def usage and usage. The difference is that both simple and complex can be used to def defined functions, and lambda is mainly used to define a simple function. The following two examples to understand the next:
lambda parameter 1, parameter 2: Expression