# Sn calculatorimport mathn = 100000S = 0def function(x): return(1/(x))for i in range(2, n): S += function(i)print(S)
Standard input is empty
11.090136129863371
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!