def triangles(): p = [1] while True: yield p p = [1] + [ p[i] + p[i+1] for i in range(len(p)-1) ] + [1]
Sign in to make a reply
欧石楠