Update FibonacciSequenceRecursion.py
This commit is contained in:
committed by
GitHub
parent
1a4962a589
commit
a811a0e849
@@ -8,7 +8,7 @@ def isPositiveInteger(limit):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
limit = int(input("How many terms to include in fibonacci series: "))
|
limit = int(input("How many terms to include in fibonacci series: "))
|
||||||
if isPositiveInteger:
|
if isPositiveInteger(limit):
|
||||||
print(f"The first {limit} terms of the fibonacci series are as follows:")
|
print(f"The first {limit} terms of the fibonacci series are as follows:")
|
||||||
print([recur_fibo(n) for n in range(limit)])
|
print([recur_fibo(n) for n in range(limit)])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user