Write the function fibTable(n) that returns a list of length n + 1 whose entry at index i is the Fibonacci number , using the lecture's convention .
Assume n is a non-negative int. Memoization fills a table on the way down a recursion; here fill it on the way up: start from the base cases and compute each new entry from entries already in the list. Do not use recursion: fibTable must work for n as large as 3000, far deeper than Python's recursion limit.
print(fibTable(6)) # [1, 1, 2, 3, 5, 8, 13] print(fibTable(0)) # [1] print(fibTable(120)[-1]) # 8670007398507948658051921