title: How to add multiple values to a list in one line in Python?
body: <p>I have a list that I want to add multiple values to, and I use <code>append()</code>, as below, to add 10 more digits:</p>
  
  <pre><code>&gt;&gt;&gt; x = [1, 2, 3, 4]
  &gt;&gt;&gt; x.append(5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: append() takes exactly one argument (10 given)
  </code></pre>
  
  <p>I kind of get what this means, so then I tried doing it with a list:</p>
  
  <pre><code>&gt;&gt;&gt; x = [1, 2, 3, 4]
  &gt;&gt;&gt; x.append([5, 6, 7, 8, 9, 10, 11, 12, 13, 14])
  &gt;&gt;&gt; x
  [1, 2, 3, 4, [5, 6, 7, 8, 9, 10, 11, 12, 13, 14]]
  </code></pre>
  
  <p>This isn't what I want though. It contains unnecessary square brackets. What I do want is this:</p>
  
  <pre><code>&gt;&gt;&gt; x = [1, 2, 3, 4]
  &gt;&gt;&gt; x.what_I_want([5, 6, 7, 8, 9, 10, 11, 12, 13, 14])
  &gt;&gt;&gt; x
  [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
  </code></pre>
  
  <p>Is the first change that I made to take away the <code>TypeError</code> the correct change to make? Or is that why this isn't working?</p>