Skip to content

Commit 42468df

Browse files
committed
Improved Code and removed warnings
1 parent 4b9d504 commit 42468df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Maths/FibonacciSequenceRecursion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ def isPositiveInteger(limit):
99
def main():
1010
limit = int(input("How many terms to include in fibonacci series: "))
1111
if isPositiveInteger(limit):
12-
print("The first {limit} terms of the fibonacci series are as follows:".format([recur_fibo(n) for n in range(limit)]))
12+
print("The first {limit} terms of the fibonacci series are as follows:")
13+
print([recur_fibo(n) for n in range(limit)])
1314
else:
1415
print("Please enter a positive integer: ")
1516

0 commit comments

Comments
 (0)