Improved Code and removed warnings (#482)

Improved Code and removed warnings
This commit is contained in:
Parth Shandilya
2018-10-19 13:28:21 +05:30
committed by GitHub
parent fedb3e70ab
commit 07451a6ca4
14 changed files with 33 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ def isPositiveInteger(limit):
def main():
limit = int(input("How many terms to include in fibonacci series: "))
if isPositiveInteger(limit):
print(f"The first {limit} terms of the fibonacci series are as follows:")
print("The first {limit} terms of the fibonacci series are as follows:")
print([recur_fibo(n) for n in range(limit)])
else:
print("Please enter a positive integer: ")