title: How to append an item to a list for a certain number of times?
body: <p>I want to append <code>a</code> <code>n</code> times to a list, any shorter ways than this:</p>
  
  <pre><code>while n:
      list.append(a)
      n -= 1
  </code></pre>