def pi_euler2(n): pi=[1,2] if n==1: return 1 if n==2: two=sum([x**-1 for x in pi]) return two for i in range(3,n+1):