Skip to content

Commit ce8b025

Browse files
Adding spaces between operators
1 parent 9a756d1 commit ce8b025

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dynamic_programming/fibonacci.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def __init__(self, N=None):
1313
self.fib_array.append(1)
1414
for i in range(2, N + 1):
1515
self.fib_array.append(self.fib_array[i - 1] + self.fib_array[i - 2])
16-
elif N==0:
16+
elif N == 0:
1717
self.fib_array.append(0)
1818

1919
def get(self, sequence_no=None):
20-
if sequence_no!=None:
20+
if sequence_no != None:
2121
if sequence_no < len(self.fib_array):
22-
return print(self.fib_array[:sequence_no+1])
22+
return print(self.fib_array[:sequence_no + 1])
2323
else:
2424
print("Out of bound.")
2525
else:

0 commit comments

Comments
 (0)