


class      _lowercase					:


       """simple docstring"""




       def __init__(  self				:     Dict			):


             '''simple docstring'''



             lowerCamelCase__						:							Optional[Any]       =    [0, 1]





       def 		lowerCAmelCase	(  self				:     Optional[Any]   , __lowerCamelCase				:     int			):


             '''simple docstring'''



             if (difference := index - (len(self.sequence			) - 2)) >= 1:
                   for _ in range(__lowerCamelCase			):
                         self.sequence.append(self.sequence[-1] + self.sequence[-2]			)
             return self.sequence[:index]



def  lowercase_						(						):

      """simple docstring"""




      print(
          "Fibonacci Series Using Dynamic Programming\n"       ,   "Enter the index of the Fibonacci number you want to calculate "       ,   "in the prompt below. (To exit enter exit or Ctrl-C)\n"       ,   sep=""       ,   )
      lowerCamelCase__						:							Any       =    Fibonacci()

      while True:
            lowerCamelCase__						:							str       =    input(">> "		)
            if prompt in {"exit", "quit"}:
                  break

            try:
                  lowerCamelCase__						:							int       =    int(_A		)
            except ValueError:
                  print("Enter a number or 'exit'"		)
                  continue

            print(fibonacci.get(_A		)		)


if __name__ == "__main__":
    main()






def  lowercase_						(						_A     :       int		):

      """simple docstring"""




      if not isinstance(_A       ,   _A		):
            raise ValueError("double_factorial() only accepts integral values"		)
      if num < 0:
            raise ValueError("double_factorial() not defined for negative values"		)
      lowerCamelCase__						:							Union[str, Any]       =    1
      for i in range(_A       ,   0       ,   -2		):
            value *= i
      return value


if __name__ == "__main__":
    import doctest

    doctest.testmod()


