Skip to content

Instantly share code, notes, and snippets.

@markz0r
Created September 17, 2019 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markz0r/7b8e52cba3c9f31328fdacf122af09f6 to your computer and use it in GitHub Desktop.
Save markz0r/7b8e52cba3c9f31328fdacf122af09f6 to your computer and use it in GitHub Desktop.
#!/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