Merge pull request #439 from timgiroux/master

fixed some spelling and added a different print message
This commit is contained in:
Harshil 2018-10-08 09:11:26 +02:00 committed by GitHub
commit c213e1553d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,11 @@ def recur_fibo(n):
else: else:
return(recur_fibo(n-1) + recur_fibo(n-2)) 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: if limit <= 0:
print("Plese enter a positive integer") print("Please enter a positive integer: ")
else: else:
print("Fibonacci series:") print(f"The first {limit} terms of the fibonacci series are as follows")
for i in range(limit): for i in range(limit):
print(recur_fibo(i)) print(recur_fibo(i))