Skip to content

Instantly share code, notes, and snippets.

@fletom
Last active October 6, 2015 02:58

Revisions

  1. fletom renamed this gist May 22, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Fletcher Tomalty created this gist Jun 13, 2012.
    5 changes: 5 additions & 0 deletions pasclas_triangle.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    def pascals_triangle():
    row = [1]
    while True:
    yield row
    row = map(sum, zip([0] + row, row + [0]))