mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Improved Code and removed warnings (#482)
Improved Code and removed warnings
This commit is contained in:
@@ -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: ")
|
||||
|
||||
Reference in New Issue
Block a user