title: Call int() function on every list element?
body: <p>I have a list with numeric strings, like so:</p>
  
  <pre><code>numbers = ['1', '5', '10', '8'];
  </code></pre>
  
  <p>I would like to convert every list element to integer, so it would look like this:</p>
  
  <pre><code>numbers = [1, 5, 10, 8];
  </code></pre>
  
  <p>I could do it using a loop, like so:</p>
  
  <pre><code>new_numbers = [];
  for n in numbers:
      new_numbers.append(int(n));
  numbers = new_numbers;
  </code></pre>
  
  <p>Does it have to be so ugly? I'm sure there is a more pythonic way to do this in a one line of code. Please help me out.</p>