Python LambdaSmall anonymous functions.ExamplesSimple LambdaAdds 10 to argument a.x = lambda a : a + 10 print(x(5)) Try it YourselfMultiple ArgumentsMultiplies argument a with argument b.x = lambda a, b : a * b print(x(5, 6)) Try it YourselfInside FunctionUsing lambda inside another function to make function doubling.def myfunc(n): return lambda a : a * n mydoubler = myfunc(2) print(mydoubler(11)) Try it YourselfTest Your KnowledgePython QuizNo quiz available for this topic yet.PreviousNext