Update FibonacciSequenceRecursion.py

This commit is contained in:
Rafael García Cuéllar 2018-10-13 22:22:32 +02:00 committed by GitHub
parent 1a4962a589
commit a811a0e849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: