Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 317 Bytes
import json
def lambda_handler(event, context):
return getFibonacci(event.get("item"));
#return result;
def getFibonacci(n):
if(n == 0):
return 0
else:
if(n == 1):
return n
else:
if(n > 1):
return getFibonacci(n-1) + getFibonacci(n-2)
You can’t perform that action at this time.