human
Program to find the sum of a Series 1 + 1 / 2 ^ 2 + 1 / 3 ^ 3 + â €¦ . . + 1 / n ^ n | Function to calculate the following series.
Driver Code"
How can the above be solved in Python?
 ... Can you provide a code to program to find the sum of a Series 1 + 1 / 2 ^ 2 + 1 / 3 ^ 3 + â €¦?
assistant
#Here is code to program to find the sum of a Series 1 + 1 / 2 ^ 2 + 1 / 3 ^ 3 + â €¦ .
 def Series ( n ) :
	sums = 0.0
	for i in range ( 1 , n + 1 ) :
		ser = 1 / ( i ** i )
		sums += ser
	return sums
n = 3
res = round ( Series ( n ) , 5 )
print ( res )