How to Write the AWS Lambda Function with Python?
We’re going to create Lambda Function with Python today. Let’s do something a little more calculation than a simple Hello World application. Let’s pass a couple of numbers into the function, and have it return the sum, difference, multiply and divide of the two numbers.
1. Create the new Lambda Function called Python-Test in AWS Lambda
2. Create the new Test Event called TestTwoNumbers
3. Add below code to Lambda function
4. Execution Result
That’s it. I hope this will help. ?
Photo: https://www.brandeps.com