code: 
  
  
  
  
  
  class 				_lowerCamelCase :
  
  
  
        """simple docstring"""
  
  
  
  
  
  
        def __init__( self   )       ->   None:
  
  
  
  
  
  
          '''simple docstring'''
  
  
  
  
  
  
          __snake_case   :				Optional[int]        =       [0, 1]
  
  
  
  
  
  
  
        def 						UpperCAmelCase		( self				,						UpperCAmelCase   )       ->   list:
  
  
  
  
  
  
          '''simple docstring'''
  
  
  
  
  
  
          if (difference := index - (len(self.sequence   ) - 2)) >= 1:
            for _ in range(UpperCAmelCase   ):
              self.sequence.append(self.sequence[-1] + self.sequence[-2]   )
          return self.sequence[:index]
  
  
  
  
  
  
  
  def       lowerCAmelCase__(	) ->    None:
    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=""   ,     )
    __snake_case   :				Any        =       Fibonacci()
  
    while True:
      __snake_case   :				str        =       input(">> "				)
      if prompt in {"exit", "quit"}:
        break
  
      try:
        __snake_case   :				int        =       int(lowercase				)
      except ValueError:
        print("Enter a number or 'exit'"				)
        continue
  
      print(fibonacci.get(lowercase				)				)
  
  
  if __name__ == "__main__":
       main()
  
  
style_context: 
  
  
  
  
  
  def       lowerCAmelCase__(	lowercase       :    str				) ->    int:
    __snake_case   :				List[str]        =       str(lowercase				).strip()
    if not oct_string:
      raise ValueError("Empty string was passed to the function"				)
    __snake_case   :				int        =       oct_string[0] == "-"
    if is_negative:
      __snake_case   :				Union[str, Any]        =       oct_string[1:]
    if not oct_string.isdigit() or not all(0 <= int(lowercase				) <= 7 for char in oct_string				):
      raise ValueError("Non-octal value was passed to the function"				)
    __snake_case   :				List[Any]        =       0
    for char in oct_string:
      __snake_case   :				Optional[Any]        =       8 * decimal_number + int(lowercase				)
    if is_negative:
      __snake_case   :				Any        =       -decimal_number
    return decimal_number
  
  
  if __name__ == "__main__":
       from doctest import testmod
  
       testmod()
  
  