title: How to read an array of integers from single line of input in python3
body: <p>I want to read an array of integers from single line of input in python3.
  For example: Read this array to a variable/list</p>
  
  <pre><code>1 3 5 7 9
  </code></pre>
  
  <h3>What I have tried</h3>
  
  <ol>
  <li><p><code>arr = input.split(' ')</code> But this does not convert them to integers. It creates array of strings</p></li>
  <li><p><code>arr = input.split(' ')</code></p>
  
  <p><code>for i,val in enumerate(arr): arr[i] = int(val)</code></p></li>
  </ol>
  
  <p>2nd one is working for me. But I am looking for an elegant(Single line) solution.</p>