API Reference
Example module of the python package template.
-
template.fibonacci(n)
Calculate the nth fibonacci number.
- Parameters:
- n
int
Which number to calculate, n >= 0.
- Returns:
- fib_n
int
The nth fibonacci number
Examples
>>> fibonacci(0)
0
>>> fibonacci(1)
1
>>> fibonacci(2)
1
>>> fibonacci(3)
2