def fib( n: int, memo: dict[int, int] ): memo[n-2] = a memo[n-1] = b return fib() print(fib(0, 1, 10))