human
n | Function to find the nth term of series.
Loop to add 4 th powers.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to n and the other steps required.
 def sumOfSeries ( n ) :
	ans = 0
	for i in range ( 1 , n + 1 ) :
		ans = ans + i * i * i * i
	return ans
n = 4
print ( sumOfSeries ( n ) )