Created by manuel-2de-indice2019
Created on October 14, 2019
115 Bytes
def pileibniz(n): s=0 for k in range(n): s=s+(-1)**k/(2*k+1) return(4*s)