def triangles(): N = [1] while True: yield N N.append(0) N = [N[i-1]+N[i] for i in range(len(N))]
Sign in to make a reply
唐龙ya