Memoization In Python
<p>I'd really love your help with understanding this using of Memoization in Python. I'm new to Python and I'm not quiet sure how to understand this syntax.</p>

<pre><code>def fib_mem(n):
    return fib_mem_helper(n,[0,1]+[-1]*(n-1))

def fib_mem_helper(i,mem):
    if mem[i] == -1:
        mem[i]=fib_mem_helper(i-1,mem) + fib_mem_helper(i-2,mem)
        return mem[i]
</code></pre>

<p>This is a code I saw for avaluating fibonacci number using memoization, what does <code>[0,1]+[-1]*(n-1)</code> mean? Can you please explain me what does this type of writing represent?</p>
