human
Find the sum of n terms of the series 1 , 8 , 27 , 64 ... . | Function to calculate the sum.
return total sum.
Driver code"
Solution in Python:
assistant
#Here is code to find the sum of n terms of the series 1 , 8 , 27 , 64 .
 def calculateSum ( n ) :
	return ( n * ( n + 1 ) / 2 ) ** 2
if __name__ == ' _ _ main _ _ ' :
	n = 4
	print ( calculateSum ( n ) )