Lambda function-
-In Python, anonymous function means that a function is without a name. As we already know that def keyword is used to define the normal functions and the lambda keyword is used to create anonymous functions.
Syntax-
lambda argument:expression
Recursion-
Function call itself is called recursion.
program-
#lambda function with recursion
func=lambda x: None if x==0 else print(x,end=" ") or func(x-1)
print(func(6))
print(func(7))
print(func(5))
print(func(1))
print(func(3))
6 5 4 3 2 1 None
7 6 5 4 3 2 1 None
5 4 3 2 1 None
1 None
3 2 1 None