Python: from vertical line user input to list
<p>I know how to change horizontal user input to became a list.</p>

<pre><code>numbers = [int(n) for n in input().split()]
</code></pre>

<p>but not sure how to do if the user input is vertical(enter after input integer:224, 32, 5)...</p>

<p>example input:</p>

<blockquote>
  <p>224 32 5</p>
</blockquote>

<p>example output:</p>

<blockquote>
  <p>[224, 32, 5]</p>
</blockquote>

<pre><code>number_read = raw_input()
number_list = []
while number_read != 'q':
  number_list.append(int(number_read))
  number_read = raw_input()
</code></pre>

<p>So as soon as a user writes <code>q</code> and presses enter, you will be done collecting input</p>

python