fixed some spelling and added a different print message

This commit is contained in:
timgiroux 2018-10-07 15:52:34 -07:00 committed by GitHub
parent c8e7a65475
commit a8a11ccc88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,11 @@ def recur_fibo(n):
else:
return(recur_fibo(n-1) + recur_fibo(n-2))
limit = int(input("How many terms to include in fionacci series:"))
limit = int(input("How many terms to include in fibonacci series: "))
if limit <= 0:
print("Plese enter a positive integer")
print("Please enter a positive integer: ")
else:
print("Fibonacci series:")
print(f"The first {limit} terms of the fibonacci series are as follows")
for i in range(limit):
print(recur_fibo(i))