Created
March 21, 2017 15:44
-
-
Save mainroach/c8a686b6197a1a170cb3ec0d08be0c87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pascalRow(n): | |
line=[1] | |
for k in range(n): | |
line.append(line[k] * (n-k) / (k+1)) | |
return line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment