Understanding Python Numerology
<p>We can not declare an integer which start with 0.</p>

<pre><code>&gt;&gt;&gt; n = 08
SyntaxError: invalid token
</code></pre>

<p>But we do declare a variable that contains all zeros.</p>

<pre><code>&gt;&gt;&gt; n = 00000
&gt;&gt;&gt; print n
&gt;&gt;&gt; 0
</code></pre>

<p>So the question is in first case why python just not consider value of variable to <code>n = 8</code> by ignoring the zero on left side instead of raising an exception. As in second case it is still considering all zeros to a valid value.</p>

<p>Consider another case.</p>

<pre><code>&gt;&gt;&gt; n = '0008'
&gt;&gt;&gt; print int(n)
&gt;&gt;&gt; 8
</code></pre>

<p>Now in third case it is still considering it a valid numeric value, why an exception is not raised here??</p>
