Does anyone know how to write a program in Python that will calculate the addition of the harmonic series. i.e. 1 + 1/2 +1/3 +1/4...
Using the simple for loop
def harmonicNumber(n): x=0 for i in range (0,n): x=x+ 1/(i+1) return x