<p>How do I display a leading zero for all numbers with less than two digits?</p>
<pre class="lang-none prettyprint-override"><code>1    →  01
10   →  10
100  →  100
</code></pre>

```
```
x = [1, 10, 100]
for i in x:
    print '%02d' % i
```
```
results in:
```
```
01
10
100
```
```
Read
more information about string formatting using %
in the documentation.