Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 130 Bytes
# calculate Fibonacci(20)
# for benchmark
def fib(n):
if n<2:
return n
else:
return fib(n-2)+fib(n-1)
print fib(20)
Jump to Line
Something went wrong with that request. Please try again.