title: Is preallocating a list more efficient?
body: <p>The first one is <strong>this</strong>:</p>
  <pre><code>n = int(input())
  a = []
  for i in range(n):
      a.append(int(input()))
  </code></pre>
  <p>The second one is <strong>this</strong>:</p>
  <pre><code>n = int(input())
  a = [0]*n
  for i in range(n):
      a[i] = int(input())
  </code></pre>
  <p>I have always been using first one, but the second one just came up to my mind. I don't know how <code>append</code> works, but I thought the second one could be more efficient than the first one.</p>
  <p>Can I get answer of this problem?</p>