human
Write me a code to sum of first n natural numbers and the other steps required given the following:
Sum of first n natural numbers | Function to find the sum of series.
Driver code"
Solution in Python:
assistant
#Here is code to sum of first n natural numbers and the other steps required.
 def seriessum ( n ) :
	sum = 0
	for i in range ( 1 , n + 1 ) :
		sum += i * ( i + 1 ) / 2
	return sum
n = 4
print ( seriessum ( n ) )