How I can print the numbers from 1-9999?
<p>I tried it on here but it can not print the long numbers like this </p>

<pre><code>for i in range(1,222222222222222):
    print i
</code></pre>

<p>Error:</p>

<pre><code>Traceback (most recent call last):
  File "x.py", line 1, in &lt;module&gt;
    for i in range(1,222222222222222):
MemoryError
</code></pre>
