create pascal triangle in python
Pascal triangle is number pattern is included amazing features.
- In algebra, A table of the binomial coefficients such as (x + y)^n
- In this table, there are 1's at the lateral sides of an equilateral triangle
- except the first numbers at the lateral sides, each numbers is the sum of the two numbers above it to the left and right
- each row has same values from right and left
- sum of each row is powers of base 2 ( 2^0 2^1 2^2 2^3 so on )
- each row is powers of base 1 ( 11^0 11^1 11^2 11^3 so on )