title: What does "list = [1] + [0] * n" do
body: <p>I've come across the code of a classmate and the first line of his method drew my attention. I know it's about a list, but I don't really know what it does and he can't remember (he didn't leave any comments in the code).</p>
  <pre><code>def foo(n, k):
          blah = [1] + [0] * n
          for i in range (1, n + 1):
                  for j in range (i, n + 1)
                          blah[j] += blah[j - 1]
          return blah[n]
  </code></pre>