File tree
Expand file treeCollapse file tree1 file changed
+3
-3
lines changed Expand file treeCollapse file tree1 file changed
+3
-3
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -13,13 +13,13 @@ def __init__(self, N=None):
|
13 | 13 | self.fib_array.append(1)
|
14 | 14 | for i in range(2, N + 1):
|
15 | 15 | self.fib_array.append(self.fib_array[i - 1] + self.fib_array[i - 2])
|
16 |
| -elif N==0: |
| 16 | +elif N == 0: |
17 | 17 | self.fib_array.append(0)
|
18 | 18 |
|
19 | 19 | def get(self, sequence_no=None):
|
20 |
| -if sequence_no!=None: |
| 20 | +if sequence_no != None: |
21 | 21 | 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]) |
23 | 23 | else:
|
24 | 24 | print("Out of bound.")
|
25 | 25 | else:
|
|
You can’t perform that action at this time.
0 commit comments