In 1653 Blaise Pascal published his treatise Traité du triangle arithmétique describing his triangle computing the binomial coefficients, which are used in the study of probability; Pascal gets credit for the name even though both the coefficients and their arrangement in a triangle were known before him.
To compute the triangle, start with a row containing only 1. Then each succeeding row is built by adding the two numbers triangularly above the current number, assuming a temporary 0 at each end of the prior row.
Your task is to write a program to neatly display Pascal’s Triangle.

1: i=1
2: a=[]
3: b=[]
4: for j in xrange(10):
5: for k in xrange(j):
6: a.append(1)
7: if j>=3:
8: for l in xrange(1,j-1):
9: a[l]=b[l-1]+b[l]
10: m=str(a)
11: print m.center(76)
12: b=a
13: a=[]