We can not declare an integer which start with 0.

```
>>> n = 08
SyntaxError: invalid token

```

But we do declare a variable that contains all zeros.

```
>>> n = 00000
>>> print n
>>> 0

```

So the question is in first case why python just not consider value of variable to `n = 8` 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.

Consider another case.

```
>>> n = '0008'
>>> print int(n)
>>> 8

```

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