Here both lambda and def are used to define a user defined functions that are used anywhere in the program.
- But lambda is uni-expression and def contain multiple lines of code.
- Lambda haven't return type but def can return anything