mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-19 00:37:02 +00:00
Update FibonacciSequenceRecursion.py
This commit is contained in:
parent
1a4962a589
commit
a811a0e849
|
@ -8,7 +8,7 @@ def isPositiveInteger(limit):
|
|||
|
||||
def main():
|
||||
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([recur_fibo(n) for n in range(limit)])
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user