human
What is a code to sum of the Series 1 / ( 1 * 2 ) + 1 / ( 2 * 3 ) + 1 / ( 3 * 4 ) + 1 / ( 4 * 5 ) + given the following:
Sum of the Series 1 / ( 1 * 2 ) + 1 / ( 2 * 3 ) + 1 / ( 3 * 4 ) + 1 / ( 4 * 5 ) + . . . . . | Function to find the sum of given series.
Computing sum term by term.
Driver function"
Solution in Python:
assistant
#Here is code to sum of the Series 1 / ( 1 * 2 ) + 1 / ( 2 * 3 ) + 1 / ( 3 * 4 ) + 1 / ( 4 * 5 ) + .
 def sumOfTheSeries ( n ) :
	sum = 0
	for i in range ( 1 , n + 1 ) :
		sum += 1.0 / ( i * ( i + 1 ) ) ;
	return sum
if __name__ == ' _ _ main _ _ ' :
	ans = sumOfTheSeries ( 10 )
	print ( round ( ans , 6 ) )