I hereby claim:
- I am iczero on github.
- I am iczero (https://keybase.io/iczero) on keybase.
- I have a public key ASBgniB71dnnJSADArXC_mXQ9FmVXlZyyt-nTQNB2RrbKgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
"""Calculate Pascal's Triangle""" | |
import sys | |
def get_triangle(num): | |
"""return 2D list of triangle""" | |
ret = [[1]] | |
for i in range(1, num + 1): | |
sys.stdout.write('\rrow: '+str(i)) | |
row = [] |