human
Sum of squares of first n natural numbers | Function to calculate series.
Driver Code"
Solution in Python:
assistant
#Here is code to sum of squares of first n natural numbers and the other steps required.
 def summation ( n ) :
	return sum ( [ i ** 2 for i in range ( 1 , n + 1 ) ] )
if __name__ == " _ _ main _ _ " :
	n = 2
	print ( summation ( n ) )