Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fibonacci number

def fibonacciVal(n):  if n == 0:    return 0  elif n == 1:    return 1  else:    return fibonacciVal(n-1) + fibonacciVal(n-2)
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Fibonacci #number
ADD COMMENT
Topic
Name
2+2 =