Python - how to store lines of numerical values?
<p>I have a file with many lines each having over 20 numerical values, e.g.:</p>

<pre>
123 1 18 180776 4303656 1605 16468 0 51429 24230 0 0 0 4 8 0 8710 14705 1836 1 4 95
0 24538 0 187860 4264028 449 4711 0 2537 2537 0 0 5 0 0 0 6138 12880 1590 1 22 76
...
</pre>

<p>I'd like to:</p>

<ol>
<li>read one line</li>
<li>save it in some python data type (what would be the best ?)</li>
<li>do some operations on each number taken from the above line, e.g.:
<ul>
<li>check if it is not above sth (and save the result)</li>
<li>check if it is not belowe sth (and save the result)</li>
<li>count its length (number of digits) (and save the result)</li>
<li>compare it to the previous number from the same column</li>
- 
</ul></li>
</ol>

<p>So after a one line (with numbers) I should have:</p>

<ol>
<li>store each number</li>
<li>store additional attributes for each number</li>
</ol>

<p>Each number is compared to previous one from the same column, store the result but then I can forget the previous line.</p>

<p>What data type would be the best to store above data ?</p>
