summa = 0 for n in range(1,12368): summa = summa + (-1)**(n + 1)*1/n print(summa)