Created
December 17, 2020 11:40
-
-
Save velotiotech/07959fe2e857415e287b643a0e67055a to your computer and use it in GitHub Desktop.
get factorial lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def lambda_handler(event, context): | |
""" | |
Handler for get factorial | |
""" | |
number = event['number'] | |
return math.factorial(number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment