Skip to content

Commit

Permalink
Adding spaces between operators
Browse files Browse the repository at this point in the history
  • Loading branch information
alaouimehdi1995 committed Apr 12, 2017
1 parent 9a756d1 commit ce8b025
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dynamic_programming/fibonacci.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ def __init__(self, N=None):
self.fib_array.append(1)
for i in range(2, N + 1):
self.fib_array.append(self.fib_array[i - 1] + self.fib_array[i - 2])
elif N==0:
elif N == 0:
self.fib_array.append(0)

def get(self, sequence_no=None):
if sequence_no!=None:
if sequence_no != None:
if sequence_no < len(self.fib_array):
return print(self.fib_array[:sequence_no+1])
return print(self.fib_array[:sequence_no + 1])
else:
print("Out of bound.")
else:
Expand Down

0 comments on commit ce8b025

Please sign in to comment.