Example #1
0
def fibrange(n):
	return [Fibonacci.calc(i) for i in range(1, n + 1)]
Example #2
0
def testfib():
	assert Fibonacci.calc(1) == 1 
	assert Fibonacci.calc(2) == 1
	assert Fibonacci.calc(3) == 2 
	assert Fibonacci.calc(4) == 3