Patch_Hawk / patchhawk /data /benign /math_fibonacci.py
RAMCr7's picture
Final patch
58f6308
raw
history blame contribute delete
174 Bytes
def fibonacci(n):
"""Return the nth Fibonacci number."""
if n <= 0:
return 0
elif n == 1:
return 1
return fibonacci(n - 1) + fibonacci(n - 2)