 How to write a lambda function in Python? I'm gonna create the power function, so let's say lambda with arguments x and y is gonna be the number x to the power of y. I'm gonna call this function power. I'm gonna call this power function, I wanna find for example number 2 to the power of 4 and I want to print the results of this function. Let's run this code and as you can see the result is 16. This is the lambda function for power function in Python.