Created
September 17, 2019 05:31
-
-
Save markz0r/7b8e52cba3c9f31328fdacf122af09f6 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/python | |
def pt(n): | |
trow = [1] | |
y = [0] | |
for x in range(max(n,0)): | |
print(trow) | |
trow=[l+r for l,r in zip(trow+y, y+trow)] | |
return n>=1 | |
pt(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment