Python - pascals triangle
<p>Hello I am stuck with this excercise. I am doing pascal's triangle, but cant seem to get it right enough so checking programme from my college would accept it. 
I must use <code>def pascals_triangle(n)</code> where <code>n=8</code>. I can get that working, but the problem is in output - i get arrays... 
like that:</p>

<pre><code>[1]
[1, 1]
[1, 2, 1]
[1, 3, 3, 1]
</code></pre>

<p>Also the definition says that each row should be written in row of a <strong>matrix P[64]</strong> and that empty places should be put to 0. I must use for loop and print command for one row should look like this:</p>

<pre><code>print "%d %d %d %d %d %d %d %d" % (P[0],P[1],P[2],P[3],P[4],P[5],P[6],P[7],P[8])
</code></pre>

<p>Any ideas? </p>
