python 2.7 line.index if statement for a multiplication table
<pre><code>lines = [[str(i * j) for i in xrange(1, 13)] for j in xrange(1, 13)]

for line in lines:
    for num in line:
        if line.index(num):
            print ' ' * (3 - len(num)) + num,
        else:
            print ' ' * (2 - len(num)) + num,
    print
</code></pre>

<p>I am trying to understand why the <code>else</code> statement pertains to the first line
 and the <code>line.index(num)</code> pertains to remaining lines. </p>