DataScience - Python Lambda Functions
n = 3 p = 2
def test(n,p): return n**p
test(3,2)Here, we create test function.
Lambda Function:
a = lambda n , p: n**p
a(3,2)
we use lambda keyword and take 2 inputs n,p; then after colon we put the output we want, then we store function inside varia...
karansss.hashnode.dev1 min read