项目作者: paintdog

项目描述 :
functionality to produce a Pascal's triangle and to print it
高级语言: Python
项目地址: git://github.com/paintdog/Pascals-Triangle.git
创建时间: 2017-10-07T21:39:41Z
项目社区:https://github.com/paintdog/Pascals-Triangle

开源协议:

下载


Pascals-Triangle

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

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