title: Converting a single line string to integer array in Python
body: <p>I'm trying to learn python through HackerRank, and I've been stuck on reading stdin.  The problem gives an array of integers as a single line of text formatted like:</p>
  
  <pre><code>1 2 3 4 5
  </code></pre>
  
  <p>This should become the array:</p>
  
  <pre><code>[1,2,3,4,5].
  </code></pre>
  
  <p>Since there are spaces in between the numerals in the input, how can I get to an array?  I've tried split() and map(), but I kept getting errors or an array that still had spaces.  </p>
  
  <p>Thank you!</p>