paintdog / Pascals-Triangle

functionality to produce a Pascal's triangle and to print it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pascals-Triangle

pascals triangle.py offers functionality to produce a Pascals Triangle and to print it.

>>> n = 5
>>> triangle = get_pascals_triangle(n)
>>> output_triangle(triangle)
    1    
   1 1   
  1 2 1  
 1 3 3 1 
1 4 6 4 1

About

functionality to produce a Pascal's triangle and to print it


Languages

Language:Python 100.0%