MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / get

Method get

dynamic_programming/fibonacci.py:20–27  ·  view source on GitHub ↗
(self, sequence_no=None)

Source from the content-addressed store, hash-verified

18 self.fib_array.append(0)
19
20 def get(self, sequence_no=None):
21 if sequence_no != None:
22 if sequence_no < len(self.fib_array):
23 return print(self.fib_array[:sequence_no + 1])
24 else:
25 print("Out of bound.")
26 else:
27 print("Please specify a value")
28
29
30if __name__ == '__main__':

Callers 3

collect_datasetFunction · 0.45
ReadModelMethod · 0.45
fibonacci.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected